|
-
Start after ... sec
Is there an actionscript that tells a movie to gotoAndPlay after a few seconds.
-
There is a timer function. See any of the effect.txt files for finishing motion scripts like explode or zoom out.
-
-
undead creature
Re: Start after ... sec
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 !
-
Thanks, this realy helps.
-
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.
-
This is what I had in mind. Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|