Timing Tween Calss in AS3?
Hi,
Could someone help me out please? I would like to achieve a slide show like instance (for the banner of my site), with at least 5 pictures.I am using the Tween Class for doing this but I can't figure out how to delay them ( for example: after the the first tween stops, how to start the, or jump to the next automatically).
example:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
var myTween = new Tween(ball_1, "x", Strong.easeInOut, 100,400, 2, true);
myTween.addEventListener(TweenEvent.MOTION_FINISH, onFinish);
function onFinish(e:TweenEvent):void
{
myTween.obj.alpha=0;
}
var myTween2 = new Tween(ball_2, "x", Strong.easeInOut, 100,400, 2, true);
myTween2.addEventListener(TweenEvent.MOTION_FINISH, onFinish2);
function onFinish2(e:TweenEvent):void
{
myTween2.obj.alpha=0;
}
thanks!