Mailing List
Home
Forum Home
Flash Pro
Subjects
Subject: RE: Firework Effect
Web Service Results
Flash Interface with 10mb xml file
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash MX 2004 Sucks
Reading and displaying RSS feeds in Flash MX
Flash and QuickTime VR
Textfield prototype question
XML to Object help
Order of events per frame
MX2004 Dataset itemClassName
memory management removeMovieClip /
Event Dispatcher between classes
Help: MX 2004 How to script a print button to print the entire sli
ScrollPane component doesn 't auto update
setInterval bug identified and fixed
setInterval bug identified and fixed
Listener Object 's best practice
 
Subject: setInterval

Subject: setInterval

2004-03-05       - By Adrian McTaggart

 Back
Reply:     1     2     3     4  

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)