I'm trying to get TimelineMax to Delay its start for 3 sec and it Doesn't work
I used the methods listed in the Documentation, with no success.
ill be glad for any help.
This is the code I'm useing
function stars_OP():void
{
var timeline_OP:TimelineMax = new TimelineMax();
var clips_OP:Array = getChildrenOf_OP(Object(this).phone_anim_mc.container2_mc);
function buildTimeline_OP(e:MouseEvent = null):void
{
timeline_OP.gotoAndStop(timeline_OP.duration);
timeline_OP.clear();
clips_OP = shuffleArray_OP(clips_OP);
var a:int = clips_OP.length;
while (--a > -1)
{
var Randsize_OP = Math.floor(Math.random()*(1-0+1))+0;
var clip_poz_x_OP = clips_OP[a].x;
var clip_poz_y_OP = clips_OP[a].y;
var poz_x_Rand_OP = Math.floor(Math.random()*((clip_poz_x_OP+250)-(clip_poz_x_OP)+1))+(clip_poz_x_OP);
var poz_y_Rand_OP = Math.floor(Math.random()*((clip_poz_y_OP+20)-(clip_poz_y_OP-5)+1))+(clip_poz_y_OP-5);
timeline_OP.append(TweenMax.from(clips_OP[a], 0.5, {alpha:0, scaleX:Randsize_OP, scaleY:Randsize_OP,x:poz_x_Rand_OP, y:poz_y_Rand_OP, blurFilter:{blurX:20, blurY:20, quality:1}, ease:Expo.easeOut}), -0.24);
}
timeline_OP.gotoAndPlay(0);
}
buildTimeline_OP();
}
I tried this
[left]var timeline_OP:TimelineMax = new TimelineMax({Delay:3});[/left]
and
timeline_OP.Delay = 3;