i have 5 moviecip in the stage and i am scaling them to 100% i would like to delay each one so let say first one animate when reach 50% the next movieclip start growing an so on …
i have this code :
import mx.transitions.Tween;
import mx.transitions.easing.Strong;
var speed:Number = 80;
var textClip:Array = ["textclip1", "textclip2", "textclip3", "textclip4", "textclip5", "textclip6"];
function growText1() {
var textWidth = new Tween(this["textclip"+i], "_xscale", Strong.easeOut, this["textclip"+i]._xscale, 400, speed);
var textHeight = new Tween(this["textclip"+i], "_yscale", Strong.easeOut, this["textclip"+i]._yscale, 400, speed);
}
function changeOfSpeed() {
speed = 10;
}
this.onEnterFrame = function() {
var speedID = setInterval(changeOfSpeed, 500);
};
for (var i:Number = 0; i<textClip.length+1; i++) {
this["textclip"+i]._xscale = 0;
this["textclip"+i]._yscale = 0;
var textWidth = new Tween(this["textclip"+i], "_xscale", Strong.easeOut, this["textclip"+i]._xscale, 400, speed*i);
var textHeight = new Tween(this["textclip"+i], "_yscale", Strong.easeOut, this["textclip"+i]._yscale, 400, speed*i);
}