Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP FOR WAITING FOR FLASH!!!

Status
Not open for further replies.

denge

Technical User
Mar 12, 2001
3
TR


Please help me! I want to create a waiting loop for a few second in the flash. But flash have not a WAIT command. Please help for how to make a waiting for flash in my flash work???

Thanks for your help!
 
The easiest is to put a stop action on a keyframe and design a continue button (that can appear only on this stopped frame and dissapear as soon as it is hit), that the user can hit to continue at his own pace. Otherwise, guess you'll have to use a getTimer script to only pause for a pre-determined time!

;-)
 

Yes. I want to use getTimer function. But it doesn't work. Please give me a example for getTimer command for use.

and thanks for your answers.

 
Create a new movie clip and call it timer.

Only 4 keyframes with only actions on them.

1-> stop ();
2-> start = getTimer();
3-> run = getTimer();
if (Number((run-start))>Number(value)) {
gotoAndStop(1);
tellTarget ("../") {
play();
}
}
4-> gotoAndPlay(3);

Now back in your main movie, from the library - CTRL L -, drag the timer clip on stage, doesn't matter where, it's invisible.
Add a keyframe in your action layer if you have one, where you want the movie to pause.
Set the following actions on this new keyframe:

stop ();
tellTarget ("/timer") {
value = "5000";
gotoAndPlay (2);
}

This should pause your main movie for 5 seconds. Change the value of value to make a longer or shorter pause.
10,000 would make it a 10 seconds pause!

If you want more pauses, just set up new keyframes in your main movie and call up the timer in the same way as above.

;-)
 


You are great. Thanks a lot !!!

:)
 
Hi Sam!
Nice touch! Coudn't of done it myself!

Guess your jpg trick signature ain't workin'!

Try converting it to a gif, it can even be an animated gif and using
Code:
[img]yourgif'surl[/img]
no line breaks, no spaces execpt for the one between img and the url in your signature!

B-)
 
Thanks... Dav just told me....
mylogo2.gif
 
Have you noticed I lost my s...!
Guess the powers of darkness, the bad side of the force, and the red flags are waking up again!
Oh! Well! It was fun while it lasted!

B-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top