Click to See Complete Forum and Search --> : Start after ... sec
simpelendidi
07-28-2003, 06:45 AM
Is there an actionscript that tells a movie to gotoAndPlay after a few seconds.
Bob Hartzell
07-28-2003, 07:38 AM
There is a timer function. See any of the effect.txt files for finishing motion scripts like explode or zoom out.
simpelendidi
07-28-2003, 07:57 AM
Thanks, I'll try it.
necromanthus
07-29-2003, 10:57 AM
Originally posted by simpelendidi
Is there an actionscript that tells a movie to gotoAndPlay after a few seconds.
The easyest way:
Insert 3 keyframes in front of the main movie loop.
Insert this script:
for keyframe 1:
del = n; ("n" = the delay,for example,if the speed is 30FPS, n = 30 for 1 second delay)
for keyframe 2:
del -= 1;
for keyframe 3:
if(del == 0){gotoAndPlay(4);}
else{gotoAndPlay(2);}
that's all !
simpelendidi
07-29-2003, 10:59 AM
Thanks, this realy helps.
johnie
07-29-2003, 07:51 PM
You can also place this on a Movieclip- Simply convert a Frame to a one frame MC.
onclipevent(enterframe){
FPS= 12;
Wait= 5;
Delay= Wait * FPS;
Time +=1;
if( Time == Delay)
{
_parent.play();
Time=0;
}
}
Place a Stop Movie Action on the Frame you want the delay to be on.
Again set FPS to the Movies FPS and set Wait to the Wait you want in Seconds.
simpelendidi
07-30-2003, 03:52 AM
This is what I had in mind. Thanks.
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.