×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

pause button

pause button

pause button

(OP)
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

RE: pause button

(OP)
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

RE: pause button

You can combine your buttons like this:

--
global gPauseMode

on mouseUp me
  gPauseMode = not gPauseMode
end mouseUp
--

Kenneth Kawamoto
www.materiaprima.co.uk

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close