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

pause and play buttons

Status
Not open for further replies.

InteractionDesign

Technical User
Mar 27, 2005
4
GB
Hi can anyone help

I am trying to develop a slide show/movie thingy!!!.

The flash movie just starts at begining and continues to the end. however i want to allow user to be able to pause and then contine watching the movie when they want.

So my question is how do i create a pause button which pauses the movie and then a play button which continue the movie from where it was paused.

Thanks for any help

 
Hard to say without knowing how this was constructed.
Is it just a running linear movie on the main timeline, and you simply want to pause it, and re-start it?

If so, you can have 2 buttons, a pause and a play button with these scripts attach to them...

Pause:
on(release){
_level0.stop();
}

Play:
on(release){
_level0.play();
}

But you could also have 1 only pause/play toggle button movie clip, which would accomplish the same thing.

Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
cheers tahnkyou for the code.

yes it is a linear sequence and two buttons are fine. however i am SO NEW to flash i dont even know how to attach this code to the functionality of the buttons.

can you help?

 
Well if you can create 2 buttons and drag instances on the stage (on their own layer if only for clarity's sake...), the in turn right-click each one onf them and select Actions. That should open up the Actions - Button window where you would type the above scripts.

Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top