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

pause button

Status
Not open for further replies.

imago73

MIS
May 26, 2006
3
IT
hello, i have to make a pause button which works like this:
during a slideshow, in the stage there's only the pause button. on rollover, no problem on this, the arrow becomes a finger, and it's restored on mouseleave. if i click the button turns into another (just the same button, simply in red color as to feedback the show is paused) and no problems about this. of course, the slideshow stops, i found a script ok in the forum. The thing is that i'd like to be able to click the same button another time so that: the slideshow re-starts from the same point, and the button is back to the original colour, to say the film is again in play mode.
I'm doing all this with two buttons (pause - play), and the script i found works great, but i'd really like that kind of single button.
thanks
 
hello, here's the script i found:
on every frame:

global gPauseMode

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

on pause putton:
global gPauseMode

on mouseup

gPauseMode = true

end

on play button:
global gPauseMode

on mouseup

gPauseMode = false

end if

and everyting works good, i didn't mention of course the behaviours for changing the arrow on mouseover and for chenging the sprite. but i need all of this with one button. thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top