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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

want a pause in Flash

Status
Not open for further replies.

symbols

Technical User
Dec 13, 2000
52
CA
I'm making a Flash presentation and am just wondering how can I make an action to pause after a certain frames are finished and start again when I press a button or setup a time so that it starts again automatically when the time is over.

tks
 
You could try (on the timeline you want to control) in the first frame

If (Currentframe=25)
Stop
End If

And create a button with the action:

On Release
Go to and Play (26)
End On

dDesign
 
at the frames where you want it to stop you
can add an action.

double click on the frame, click on action,
and choose stop.

then you can just create a flash button and
when you click it set the action to go to
and play next frame.

to get it to automatically start again add an
action to the last frame, go to and play(1) ...
i think it does this automatically.

is this what you mean ?

hope that helped :)
 
Putting a stop action on the timeline where you want it to pause, should do the trick! Having a "continue" button, already there or appearing just before the pause, with an action to on press "go to and play (next frame #)", should resume the presentation.

;-)
 
tks for the ideas. But all I don't want is a button on the screen. It's because I'm going to have presentation which can only contains data. I just want to create a presentation
with a about 30 seconds pause on each screen or move to next screen by pressing a button on the keyboard (without showing a button or a mouse click.) Simply speaking, just like Powerpoint, you press a button then it goes to next screen.

tks
 
I finally made how to jump to next screen by pressing a button in keyboard without making a button in screen. However, I still can't figure out how to setup a timer to make it jumps to next screen automatically. I think it must be something simply but I can't figure it out. Could someone pls help?

tks

 
You could use the GetTimer function:
If (x=0)
Got to and Stop ("start")
Set Variable: "x" = x+1
Else If (GetTimer * 1000 = (x*30))
Go to and Stop (x)
Set Variable: "x" = x+1
End If

This sets up a 30 second delay between frame movements. The first frame of the movie being on a frame labelled "start". Change the 30 to change the time difference between jumps. Change (x)and "Stop" to suit your movie.

dAVdESIGN
 
you're so throughful, davdesign. I'll give it a try. By the way, thank you so much for you guys great ideas.

tks a million.
 
Almost forgot......
If you want to change the length of the delay between frames, double click the movie-clip "timer-clip" in the library and set the variable "pausetime" to the desired time (in milliseconds).

For each new frame you add to the presentation, insert the actions:
Stop
SetVariable "stoppedtime" = GetTimer

You'll also need to drag a copy of the movie-clip "timer-clip" onto each frame. It doesn't matter where on the stage you put it because it contains no symbols (i.e. invisible).

Have fun.
dD davdesign@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top