Button to stop/start sound loop

Posted on 2008-11-20
Last Modified: 2012-05-05

I have a fairly simple movie that has a sound loop over the top. I want to put a button on all frames that will toggle the sound on or off. I've been trying to find a solution, but all seem to be very over complicated. The sound simply starts on frame 1 and loops for the duration. Thanks in advance for you help.
Question by:DallySP
    1 Comment

    Accepted Solution

    Don't worry - I figured it out - used this:

          globalsound = new Sound();


           globalsound = new Sound();

    on the stop and start buttons - seems to work fine.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
    While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
    In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
    The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

    746 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

    17 Experts available now in Live!

    Get 1:1 Help Now