Copy link to clipboard
Copied
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();
Copy link to clipboard
Copied
use similar code,
bgSound = new BgSound(); // use the correct class
bgSound.play(); // there's no need for a soundchannel unless you use it somewhere.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now