all groups > flash actionscript > december 2004 >
You're in the

flash actionscript

group:

5 second delay


Re: 5 second delay tralfaz
12/31/2004 12:31:37 PM
flash actionscript: Put this code at the frame where you want a 5 second hold..

stop(); // pause the timeline
id = setInterval(waithere,5000); // in 5 secs, call the function

function waithere()
{
clearInterval(id); // only used once, now cancel it
play(); // continue down timeline now
}

hope that helps,
tralfaz


[quoted text, click to view]

Re: 5 second delay theco
12/31/2004 3:46:05 PM
try use the setInterval(yourFunction, 5000miliseconds) the millisecond in
depend on the fps of your movies

place this in a blank frame

setInterval(playMframe, 5000)
this will execute the function playMframe every 5 second

create this function

function playMframe() {

gotoAndPlay(yourFrame)
}
this will play your movie to your wanted frame
please check the sintax I dint chek it

[quoted text, click to view]

5 second delay xcoldnet
12/31/2004 6:50:55 PM
How can I force the execution of the timeline to be delayed by 5 seconds?
stop(); ...will just stop the execution.... ...I know it, one way will be to
insert as many frames to cover 5 seconds but I would like to know if there is
any way to sort this using Action Script. Thank you, Dario
AddThis Social Bookmark Button