News:

If you need instructions on how to get through the hotels, check out the enclosed instruction book.

Main Menu

Need some quick flash help regarding pausing for x seconds

Farted by HeinekenClock, January 26, 2011, 09:34:22 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

HeinekenClock

Hi,

I know this isn't the right forum but I need to have this finished tonight because I have a big presentation tomorrow.

Basically it's a fancy slideshow that pauses at every picture with a script that includes this at the start of the movie:

function pause(){

play();

clearInterval(timer);

};
Then this at every frame I want to pause:

stop();

timer = setInterval(pause, 20000);
The weird thing is it works fine... twice. The third time around it either doesn't pause at all or pauses for only 5 or 6 seconds as opposed to the 20 seconds I specified in the actionscript.

This is driving me absolutely insane as I can't find any conflicting code ANYWHERE and even removed some movieclips that had a stop(); at the end to see if that's the problem but nothing has helped.

:(

F U Clock

Could you use a setTimeout function?

setTimeout(Movie001, 10000);
function Movie001(){
gotoAndStop("whatever");
}

That would make it do whatever you want after a set time.

AbsintheClock

I know this isn't the right forum for this, but I sure do love attention.