CreateJS / TweenJS

A simple but powerful tweening / animation library for Javascript. Part of the CreateJS suite of libraries.
http://createjs.com/
MIT License
3.56k stars 967 forks source link

example giving error #26

Closed johnstejskal closed 9 years ago

johnstejskal commented 11 years ago

The example shown is:

var tween = createjs.Tween.get(myTarget).to({x:300},400).set({label:"hello!"}).wait(500).to({alpha:0,visible:false},1000).call(onComplete);

although i get a script error at the "{x:300},400" saying "invalid amount of parameters, expecting 3"

sebastianderossi commented 11 years ago

Does your "myTarget" have a property called label? Also please provide more detailed information, for instance what browser, what version of TweenJS / EaselJS , can you provide more code to get a better idea of your issue.

Thanks

lannymcnie commented 11 years ago

What browser/OS is this happening on? The to() method only requires 1 parameter.

lannymcnie commented 9 years ago

Closing this, since it had no response to the questions. Please re-open if it still persists, and provide more info.