Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2405
  • Last Modified:

Button to stop/start sound loop

Hi,

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.
0
DallySP
Asked:
DallySP
1 Solution
 
DallySPAuthor Commented:
Don't worry - I figured it out - used this:

      globalsound = new Sound();
      globalsound.setVolume(0);

and

       globalsound = new Sound();
      globalsound.setVolume(99);

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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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