Skip navigation
Currently Being Moderated

How to continue sound when the whole timeline is stopped?

Nov 26, 2012 3:32 PM

Tags: #as3 #sound #stop #loop

Hello

 

I used stop(); to stop my game. Each "section" takes only 1 frame, so each frame is stopped.

However, I have a sound I want to always play in the background, no matter what. It should always play and always loop, until the game finishes.

 

Do I have to script it? With what commands?

 
Replies
  • Currently Being Moderated
    Nov 26, 2012 4:46 PM   in reply to mechanicarts

    Look into using the Sound class to load and play the sound file.  If you search Google using terms like "AS3 Sound tutorial" you should be able to find something to guide you.  If you happen to be using AS2, substitute that in place of AS3 in the search terms.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 27, 2012 5:25 AM   in reply to mechanicarts

    Actually, if you Google it you will find something more helpful.

     
    |
    Mark as:
  • lingoes
    11 posts
    Oct 18, 2012
    Currently Being Moderated
    Nov 28, 2012 2:25 AM   in reply to mechanicarts

    in the New layer scene. Click Layer frame (must keyframe) to select the following properties (like sound). Then select the sound you want to play (synchronization: best changed to "start")after that you want to turn off the sound, to the button with action: stopAllSounds (); line

    Note: stopAllSounds (); All the sound stops.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points