Subject: setInterval 2004-03-05 - By Adrian McTaggart
Back I have the following code. I know that it is not correct as I am not sure where to use the line, delayNext = setInterval(pauseCard, 300);
The function winner() duplicates movie clips to creat a pattern. I want to use the delay so that the pattern is shown in stages (i.e. each mc is duplicated after a delay of 300 ms) and is not simply on the stage as soon as the movie runs.
Any ideas on how I should adapt this code or am I appraoching it in the wrong way?
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ function pauseCard() { clearInterval(delayNext); }
delayNext = setInterval(pauseCard, 500);
function winner() { for (var i=1; i<0; i++) { _root.card_mc.duplicateMovieClip("playerCardMain"+i, i); setProperty ("playerCardMain"+i, _x, i+5); setProperty ("playerCardMain"+i, _y, i+5); setProperty ("playerCardMain"+i, _rotation, i*5); } }
winner(); __ ____ ____ ____ ____ ____ ____ ____ ____ ____
Many thanks,
Adrian
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ 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)
|
|