I'm trying to use a tween class to bring in an object in Actionscript 3.0. For some reason the Tween Class always starts on it's own. I want it to start when I click a button. Here's what I've got.
var cont_tw:Tween = new Tween(thmb, "y", Strong.easeIn, 700, 0, 5, true);
I know I'm missing something simple, but it's driving me crazy, thanks!
Due to the stupid way Adobe wrote their Tween class, tweens are triggered by the class's constructor. In other words, wrting new Tween(...) causes a tween to happen. So you either need to use a third-party tween engine (e.g. gtween) or delay running the constructor until within the button code: