yuetyeelo2855 / tweener

Automatically exported from code.google.com/p/tweener
0 stars 0 forks source link

onComplete, onUpdate, etc. syntax #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I think a better syntax for the onComplete param, would be to send it an array, 
with the first item 
in the array being the function to call, and the following being the function 
parameters like so:

Tweener.addTween(my_mc, x: 300, onUpdate:[trace, my_mc.x], time: 0.5);

and it could also be flexible enough so that it can support the current syntax.

Original issue reported on code.google.com by yodigowa...@gmail.com on 3 Feb 2009 at 6:56