# URGENT HELP NEEDED! Sound/Actionscript... it MUST be simple?

**URL:** <https://forum.kirupa.com/t/urgent-help-needed-sound-actionscript-it-must-be-simple/264147>\
**Category:** Uncategorized\
**Created:** [June 23, 2008, 3:32pm UTC](https://forum.kirupa.com/t/urgent-help-needed-sound-actionscript-it-must-be-simple/264147 "2008-06-23T15:32:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robthedesginer](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@robthedesginer](https://forum.kirupa.com/u/robthedesginer)\
**Post date:** [June 23, 2008, 3:32pm UTC](https://forum.kirupa.com/t/urgent-help-needed-sound-actionscript-it-must-be-simple/264147/1 "2008-06-23T15:32:04Z")

</div>

hi Guys

firstly, thanks for your help on previous topics.

i have a seven-scene movie with one audio track running the length of the movie. actionscript on scene 1 frame 1 is as follows:  
var my\_music:Sound = new Sound();  
my\_music.attachSound(“TomElliot\_Final\_1.mp3”);  
my\_music.start(0, 2);

this works fine. i would now like to add a sound on/off or ‘mute’ button (perhaps a check box component?) to allow the user to mute the audio without having to lower it manually on speakers or keyboard. i would imagine that some kind of

“if(checkbox)true;  
my\_music.setVolume(100)…”  
or something similar. but then i could be COMPLETELY wrong as i don’t know what i’m talking about when it comes to actionmanscript. what i DON’T want is for the music to stop and re-start on this button, but to stream whether sound is on or off.

no volume slider or play/stop suggestions please.

otherwise your help, as always, is much appreciated.
