I’ve got an animation in which I have used the tween class for some nice movement. I was wondering how it would be possible to time it out? Like how would you go about saying something like: Wait 6 seconds, then tween, wait 6 seconds, then tween, etc…
Here is my code right now:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var xScaleSpalding:Tween = new Tween(spaldingTest_mc, “_x”, Strong.easeOut, 0, -300, 1, true);
xScaleSpalding.onMotionFinished = function() {
var yScaleSpalding:Tween = new Tween(spaldingTest_mc, “_y”, Strong.easeOut, 0, -250, 1, true);
yScaleSpalding.onMotionFinished = function() {
var xScaleSpalding2:Tween = new Tween(spaldingTest_mc, “_x”, Strong.easeOut, -300, 0, 1, true);
xScaleSpalding2.onMotionFinished = function() {
var yScaleSpalding2:Tween = new Tween(spaldingTest_mc, “_y”, Strong.easeOut, -250, 0, 1, true);
};
};
};