I've been trying to get a main menu's audio to function properly, and it hasn't gone all too well. It links to two separate scenes, each with their own audio. To prevent it from layering the main menu music over each scene's music, I gave the buttons the preset "stop all sounds" ActionScript 3.0 command. Problem is, this snippet keeps the audio from behaving the way I want it to, which would be stopping the main menu track and immediately starting the audio in the new scene.
These separate scenes are a requirement, (this is a school project) and I have no other option. Audio aside, buttons function as they should. Each scene that the buttons link to possess two layers of sound that are intended to start immediately upon transition, a sound-effect (that was previously part of the button's down frame and worked until I had to figure out how to keep music from overlaying) and the music. I'd moved the button's sound to the first frame of the other scenes so that it would still seem as though it was part of the down frame, since the stop all sounds cancels out the button's attached sound effect.
I've seen a thread where someone else had a similar issue, but from the way they described it, their project was all one scene, and they weren't handling audio across scenes, so I doubt that the code recommended in their case would help me.
The code I have attached to frame 1 involving the buttons is as follows: