|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Play movie clip at timed intervals
Hi - i'm brand new to FLASH & am attempting a simple first project. I have a 6 frame animation of a duck quacking. I would like to create a FLASH movie to be embedded on a web page that will play the movie clip every 60 seconds. Can anyone point me in the proper direction to accomplish this... unfortunately looking thru the lessons & tutorials w/ FLASH haven't helped so far.
Any help is appreciated! ![]() |
|
#2
|
|||
|
|||
|
Hi, you've almost described setInterval with your subject line :¬). setInterval is a flash actionascript function that can be used to call a function every x milliseconds. You can read up about it in the built in flash help. I think there's an example of it's usage there as well. You could do what you want without setInterval though simply by extending a single level to say frame 120, 200 etc...it depends on your framerate. Anyway at the final frame simply use gotoAndPlay(1); to jump back to the start and play the whole thing again.
|
|
#3
|
|||
|
|||
|
thanks
hey Tann,
yeah, I was going to just increase the # of frames but figured I might as well start digging into ActionScript. Anyways, thanks for pointing me in the right direction. ciao! |
|
#4
|
||||
|
||||
|
Code:
timer = setInterval(delay, 60000);
function delay() {
clearInterval(timer);
your_movie_clip.gotoAndPlay(2);
}
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Play movie clip at timed intervals |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|