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!

simple play/pause button?

Status
Not open for further replies.

CMD83

Technical User
Nov 11, 2002
68
NL
I want a pause button, if I click it it pauses the movieclip, and changes to a play button. If I click this play button I want the movieclip to run again, and change the pause button to a play button.

Any hints on how to do this?

Thanks in advance!

-----
I'm unique, just like everyone else...
 
You can try this. I've used it to control video, music and movieclips.
Give your movieclip an instance name so the buttons can refer to it. Your buttons will have to be in a 2-frame movieclip themselves in order to appear to toggle. On the pause button (frame 1):
Code:
on (release) {
nextFrame();
_root.instancename.stop();
}
On the play button (frame 2):
Code:
on (release) {
prevFrame();
_root.instancename.play();
}
Also put a stop(); action on frame 1 of this play/pause movieclip.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top