Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Actionscript 3.0 How can I add a new background sound file after previously stopped

Community Beginner ,
Jan 03, 2016 Jan 03, 2016

So i have a animation that has an intro screen and a next button. The next button stops all the intro background music and proceeds to the next frame?.

Right now I have gotten the background music for the intro to play and stop when the next button is clicked. How can I get a new background music to play in the next frame?

The code I have right now for the intro is

openingBackground = new Openingtest2();

  bgmSoundChannel = openingBackground.play

and then in the nextbutton function it is

SoundMixer.stopAll();

TOPICS
ActionScript
187
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 03, 2016 Jan 03, 2016
LATEST

use similar code,

bgSound = new BgSound();  // use the correct class

bgSound.play();  // there's no need for a soundchannel unless you use it somewhere.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines