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!

How do I make a pause button?

Status
Not open for further replies.

mrbens

Technical User
Apr 26, 2001
5
GB
I have a linear animation using director and I want to have a pause button and a continue button so the user can stop the play head and start the play head, its sounds simple, but I can't make it work, can anyone help me???? PLEASE!!!
 
on every frame have a script like

global gPauseMode

on exitframe
if gPauseMode = true then
go to the frame
end if
end

on the pause button
global gPauseMode
on mouseup
gPauseMode = true
end

on the play button
global gPauseMode
on mouseup
gPauseMode = false
end if

This should do the trick. Doesn't deal with audio though, so you may need to add code to deal with that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top