Subject: setInterval 2004-03-05 - By Adrian McTaggart
Back Thanks Andreas,
It works which is great. However if I want to duplicate 100 movie clips it starts to really slow down as it gets about half way. The processor usage is at 100%.
Is there a way to do this without slowing down?
TIA,
Adrian.
-- --Original Message-- -- From: Andreas Weber [mailto:webweber@(protected)] Sent: Friday, March 05, 2004 10:28 AM To: flashnewbie@(protected) Subject: RE: [Flashnewbie] setInterval
Try something like
count = 0; delayNext = setInterval(winner, 500);
function winner() { if(count == 10){ trace('clearInterval'); clearInterval(delayNext); return; } trace('do stuff'); _root.card_mc.duplicateMovieClip("playerCardMain"+count, count); setProperty ("playerCardMain"+count, _x, count+5); setProperty ("playerCardMain"+count, _y, count+5); setProperty ("playerCardMain"+count, _rotation, count*5); count++; }
HTH -- ---- ------ Andreas Weber motiondraw.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
|
|