• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
Locked
0

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

229

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
LEGEND ,
May 06, 2020 May 06, 2020

Copy link to clipboard

Copied

LATEST

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. 

Votes

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