Pause and Play button Actionscript 2

Posted on 2008-11-03
Last Modified: 2013-11-11
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.
Question by:sudiio
    LVL 39

    Expert Comment

    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?


    Accepted Solution

    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!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
    This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
    The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
    The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now