Locked

Urgent help needed, AS3 Audio buttons multi audio files internal and external

New Here ,
May 05, 2020 May 05, 2020

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.

1.JPG

 

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;
}

TOPICS
How to, SWF

Views

180

Likes

translate

Translate

Translate

Report

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
Most Valuable Participant ,
May 06, 2020 May 06, 2020

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. 

Likes

translate

Translate

Translate

Report

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