View Single Post
  #6  
Old 08-15-2010, 09:09 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
I support this 100%, but I'd rather see it like so:

PHP Code:
temp.tween myObject.addTween();
tween.value "x";
tween.start 2;
tween.finish 4;
tween.duration 1;

// alternate syntax, same thing
with (myObject.addTween()) {
  
value "x";
  
start 2;
  
finish 4;
  
duration 1;

Then you could easily do things like
PHP Code:
waitfor(tween"onTweenCompleted"60); 
or

PHP Code:
this.catchEvent(tween"onTweenCompleted""onMyEvent"); 
__________________
Reply With Quote