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

Making a Pause button, can make movie stop, but how to restart?

Status
Not open for further replies.

Rexolio

Technical User
Aug 29, 2001
230
Have a pause button to stop movie, but want the same button to play it again if its clicked a second time. Don't know how to do this so I'd appreciate your advice!!

Thanks,
Rexolio
 
make a mc with two frames..one the start button and the other the stop..place a stop action in both frames..name the instance of the mc buttons when you drag it on the main time line..

in the start button put this :

on (press) {
_root.buttons.gotoAndStop(2);
}

plus add the actions that you will use to start your movie back up..all in that button..don't know what your using to start and stop so you'll have to add that part for your self..

in the stop button actions put this:

on (press) {
_root.buttons.gotoAndStop(1);
}

and add the code that stops the movie in this button as well..so it stops the movie and switches over to the start button..the start button of course starts the movie and switches over to the stop button..

let me know if ya get it or not..pretty simple!


logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top