PDA

View Full Version : 20 seconds



reweb
May 13th, 2003, 11:38 AM
The movie play's. At a frame, for example frame 45 I wanna make a pause for 20 seconds and then play next frame ( 46 ).
How can I do this?

reweb
May 13th, 2003, 11:50 AM
I solve the problem. 10x.

In frame 1 I set a variable time. Because I will use this time in many frames.


time = 20000

In frame 45




function playNext() {
clearInterval(hold);
gotoAndPlay(46);
}
hold = setInterval(playNext, time);
stop();

mlk
May 13th, 2003, 03:30 PM
woohoo! if this works than you've solved a problem i've had for ages--- thnx !!

El Phantom
May 13th, 2003, 08:42 PM
There's also a TechNote at Macromedia that addresses this type of problem for Flash 5.

Might be simpler in MX.... no clue, and haven't tried it.

http://www.macromedia.com/support/flash/ts/documents/f5_pauser.htm

--EP

reweb
May 14th, 2003, 07:56 AM
no problem mlkdesign.
It works. :))