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");