<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DesignFission &#187; sound</title>
	<atom:link href="http://www.designfission.com/blog/tag/sound/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.designfission.com/blog</link>
	<description>Flash, Web, Javascript and everything else</description>
	<lastBuildDate>Sun, 25 Dec 2011 18:31:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Master Volume Control in AS3.0</title>
		<link>http://www.designfission.com/blog/2010/02/12/master-volume-control-in-as3-0/</link>
		<comments>http://www.designfission.com/blog/2010/02/12/master-volume-control-in-as3-0/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 08:55:09 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[setvolume]]></category>
		<category><![CDATA[sound]]></category>
		<category><![CDATA[soundmixer]]></category>
		<category><![CDATA[soundtransform]]></category>
		<category><![CDATA[stop]]></category>
		<category><![CDATA[stopall]]></category>

		<guid isPermaLink="false">http://www.designfission.com/blog/2010/02/12/master-volume-control-in-as3-0/</guid>
		<description><![CDATA[Source code after the jump.]]></description>
			<content:encoded><![CDATA[<p>Applied to a single button. Frame 1 shows that sound is on, and frame 2 shows that it&#8217;s off.</p>
<pre class="brush: as3; title: ; notranslate">
sound_mc.buttonMode = true
sound_mc.addEventListener(MouseEvent.CLICK,toggleSound)

function toggleSound(e:MouseEvent){
	var tempMC:MovieClip = e.currentTarget as MovieClip
	var sTransform:SoundTransform = new SoundTransform(1,0);
	if(tempMC.currentFrame == 1){
		tempMC.gotoAndStop(2)
		sTransform.volume = 0;
	}else if(tempMC.currentFrame == 2){
		tempMC.gotoAndStop(1)
		sTransform.volume = 1;
	}
	SoundMixer.soundTransform = sTransform;
}
</pre>
<p>If this post helped you in any way, help me in return by clicking on the ad below:<br />
<script type="text/javascript"><!--
google_ad_client = "pub-1241157645351204";
/* 300x250, created 3/27/10 */
google_ad_slot = "0640751317";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.designfission.com/blog/2010/02/12/master-volume-control-in-as3-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>stop all sounds in Flash AS3</title>
		<link>http://www.designfission.com/blog/2010/01/05/stop-all-sounds-in-flash-as3/</link>
		<comments>http://www.designfission.com/blog/2010/01/05/stop-all-sounds-in-flash-as3/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 12:20:17 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[sound]]></category>

		<guid isPermaLink="false">http://designfission.com/blog/2010/01/05/stop-all-sounds-in-flash-as3/</guid>
		<description><![CDATA[You can call it the global mute as well. What this line of code does is actually just turning down the entire flash&#8217;s volume down to 0. This is great for websites or games alike when a &#8220;Sound Off&#8221; or &#8220;Mute&#8221; feature is needed.]]></description>
			<content:encoded><![CDATA[<p>You can call it the global mute as well. What this line of code does is actually just turning down the entire flash&#8217;s volume down to 0. This is great for websites or games alike when a &#8220;Sound Off&#8221; or &#8220;Mute&#8221; feature is needed.</p>
<pre class="brush: as3; title: ; notranslate">SoundMixer.soundTransform = new SoundTransform(0);</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.designfission.com/blog/2010/01/05/stop-all-sounds-in-flash-as3/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Content Delivery Network via dfblog.qwertydesign.netdna-cdn.com

Served from: www.designfission.com @ 2012-02-06 13:56:19 -->
