I'm aware of how to stop a soundChannel from playing, but I want the sound to continue playing interrupted through all menu screens until the player actually enters a level. If you want to swap backgrounds, just change the visibility properties. visible property: bg1.visible true bg2.visible false etc.
In the constructor function, you can stipulate which background is visible and which are invisible by setting their. However, when navigating to the help menu and then back to the title (frame 2), another instance of the song starts playing, despite not having left the frame of the music layer that the code is in. Convert each background into a MovieClip - each with its own instance name (bg1, bg2 etc.). To do this, I created a 'music' layer on the timeline, and made one keyframe on frame 2 and with code: music=ay() ActionScript 3.0 is the programming language used in Adobe Animate CC and newer. Open a Flash File (ActionScript 3.0) and drag an instance of CCforFlashAS3. but rather, add or remove them dynamically using Actionscript 3.
The menu music should not stop or create a new instance when switching between menu frames (frames 2-5 in my program), but should stop when entering game level frames (frames 6-10). To install CCforFlashAS3 in your Flash authoring environment, double click. Your Flash game would be very dull and boring without a background music and sound.
What I want is to have one soundtrack for menu screens, and another in game. I have been trying to get background music working for my game in as3.