Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2480
  • Last Modified:

Pause and Play button Actionscript 2

I have a main swf movie that contains a loadmovie called empty with 4 buttons on the main movie which when released will load 4 different swf movies-- child swfs -- containing jpgs and voice audio on the stage.
I need a separate pause and play button in the 4 separate swf movies to pause both the jpgs and voice narration when the pause button is clicked and then a play button that resumes where it left off when the play button is clicked.

If you could be as explicit in your answer as you can as I am a beginner, I'd appreciate it.
1 Solution
is the voice naration a sound object? if so soundobjectname.stop() - will pause your sound.
to resume you need to use the SoundObjects  position property saved when stopped so that when you start you can specify the position to resume at.
if you're not familiar with the sound object please refer to the help file as there's lots of details and examples there instead of me copy and pasting the help file here.

why do you need to pause a jpeg?

sudiioAuthor Commented:
Thanks once again blue genie!  I figured it out.  Since I could use stream I simply used the onrelease stop and play buttons because they are on the timeline.

Thank you!

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now