:hair: I am trying to load a movie after a button is pressed. I can load the movie. I have since realized I need a delay… I want to delay the playing of the movie, after the botton to load the is pressed.
HELP, plz :hair:
:hair: I am trying to load a movie after a button is pressed. I can load the movie. I have since realized I need a delay… I want to delay the playing of the movie, after the botton to load the is pressed.
HELP, plz :hair:
In the first frame of the movie you are loading…
[AS]function doneDelay(){
this.play();
clearInterval(delay);
}
delay = setInterval(doneDelay, 3000);
stop();[/AS]
3000 is the time to delay in milliseconds, so 3000 is actually 3 seconds. After 3 seconds is up the doneDelay function is called on which plays the movie using the play() command and then it clears the interval so that in the next 3 seconds (or any after that :P) the function won’t be called.
Thanks for your help. FYI… I had to delete THIS. to have the script function correctly forme. It works!!!
Thanks a Mil
Oops, sorry, I typed it up on the spot… usually my untested code fails, you would think I would learn after the first 14000 times but NOOOOOO…lol.
Glad it works now though