Copy link to clipboard
Copied
Hello, everyone.
I'm new to the forum and I need some help quickly,
I have multiple audio files some internal and extrenal files.
I made a button to mute all sounds, but it's not what I want.
I need two buttons ,
one to stop only the backgroundsoundtrack.mp3 audio file and one to stop all sound except the backgroundsoundtrack.mp3 audio file
pls help as I need to finish this soon, it's for my graduation project.
I will be very grateful if you can help me finish this in two days time at most.
this is the code of the all sound stop button.
btn_mute.addEventListener(MouseEvent.CLICK, fl_ClickToPlayStopSound_29);
var fl_SC_29:SoundChannel;
//This variable keeps track of whether you want to play or stop the sound
var fl_ToPlay_29:Boolean = true;
function fl_ClickToPlayStopSound_29(evt:MouseEvent):void
{
if(fl_ToPlay_29)
{
var s:Sound = new Sound(new URLRequest("sounds/backgroundsoundtrack.mp3"));
fl_SC_29 = s.play();
mutte.gotoAndStop(1);
}
else
{
fl_SC_29.stop();
mutte.gotoAndStop(2);
}
fl_ToPlay_29 = !fl_ToPlay_29;
}
Copy link to clipboard
Copied
You need to find a forum for the product you are using. This forum deals only with Flash Player in its final months of life, not authoring.