NightBreaker
NightBreaker
  • Member since: Nov. 9, 2008
  • Offline.
Forum Stats
Member
Level 10
Animator
Audio Commentary Jul. 18th, 2012 @ 05:02 AM Reply

Hey, so i'm considering doing a commentary for my series, and I was wondering if there was an easy way to approach having a layer of audio audible at the click of a button.

My preference is to stream the audio, otherwise I could just have the button initiate the sound file, but I want to be able to have it actually match up with the events, 'n' stuff.

Also, it'd be good if the previous soundtrack layers could be quieter.

Could anyone please help?
thanks.


BBS Signature
Gimmick
Gimmick
  • Member since: Aug. 20, 2008
  • Offline.
Forum Stats
Member
Level 27
Game Developer
Response to Audio Commentary Jul. 19th, 2012 @ 09:35 PM Reply

AS2:
To mute:

var snd:Sound = new Sound(_root)
snd.setVolume(0)

to unmute:

snd.setVolume(100)

"Fuck you,your sister,your mother,your father,your father's father,your grandma,actually,fuck your whole ancestry,in the ass,with a large cactus" FallenMartyr

BBS Signature