A little help with time for an object


hi there,

 

i need here: need define code object appear every 3 seconds , else 5 seconds after appearing. know how that?

 

thanks!

if object movieclip, can use following better cleanup or crash flash player:

 

var appeartimer:timer=new timer(3000,0);

appeartimer.addeventlistener(timerevent.timer,appearf);

 

function appearf(e:timerevent):void{

var mc:movieclip=new whateverclass();

addchild(mc);

mc.t=new timer(5000,1);

mc.t.addeventlistener(timerevent.timer,dosomethingelsef);

}

function dosomethingelsef(e:timerevent):void{

//do whatever else

}



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account