Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-10-2010, 11:39 PM   PM User | #1
djh101
Regular Coder

 
djh101's Avatar
 
Join Date: May 2009
Location: Santa Clarita
Posts: 607
Thanks: 48
Thanked 63 Times in 63 Posts
djh101 is an unknown quantity at this point
AS2 Music Mute Button

I have sound effects that play on events and then I have the background music attached to a frame. Right now I have a mute all button that's working fine, but I want to add another button so that just the background music mutes. The sound is named breakbeat with linkage name breakbeat. Here's my current button:
Code:
on(release){
	s = new Sound();
	if(_root.mute == 0){
		_root.mute = 2;
		s.setVolume(100);
	} else {
		_root.mute = 0;
		s.setVolume(0);
	}
}
__________________
"Yeah science!"
Online Science Tools
djh101 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:18 PM.


Advertisement
Log in to turn off these ads.