<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Flash CS3 Tutorial &#8211; Volume Toggle Switch</title>
	<atom:link href="http://www.schoolofflash.com/2008/04/flash-cs3-tutorial-volume-toggle-switch/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.schoolofflash.com/2008/04/flash-cs3-tutorial-volume-toggle-switch/</link>
	<description>Flash and ActionScript Tutorials by Craig Campbell</description>
	<lastBuildDate>Fri, 19 Apr 2013 06:51:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Cesar</title>
		<link>http://www.schoolofflash.com/2008/04/flash-cs3-tutorial-volume-toggle-switch/comment-page-1/#comment-33367</link>
		<dc:creator>Cesar</dc:creator>
		<pubDate>Thu, 07 Feb 2013 03:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/04/22/flash-cs3-tutorial-volume-toggle-switch/#comment-33367</guid>
		<description><![CDATA[Hi Craig Campbell
it´s so cool this tutorial, but i wonder how can i do the effect fade in/out with of sound in just one button]]></description>
		<content:encoded><![CDATA[<p>Hi Craig Campbell<br />
it´s so cool this tutorial, but i wonder how can i do the effect fade in/out with of sound in just one button</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natalie B</title>
		<link>http://www.schoolofflash.com/2008/04/flash-cs3-tutorial-volume-toggle-switch/comment-page-1/#comment-18670</link>
		<dc:creator>Natalie B</dc:creator>
		<pubDate>Fri, 20 Apr 2012 23:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/04/22/flash-cs3-tutorial-volume-toggle-switch/#comment-18670</guid>
		<description><![CDATA[These tutorials have literally been a life saver can&#039;t thank you enough for putting these up, thanks again!!!]]></description>
		<content:encoded><![CDATA[<p>These tutorials have literally been a life saver can&#8217;t thank you enough for putting these up, thanks again!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob C</title>
		<link>http://www.schoolofflash.com/2008/04/flash-cs3-tutorial-volume-toggle-switch/comment-page-1/#comment-9531</link>
		<dc:creator>Rob C</dc:creator>
		<pubDate>Thu, 11 Aug 2011 17:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/04/22/flash-cs3-tutorial-volume-toggle-switch/#comment-9531</guid>
		<description><![CDATA[This tutorial was helpful, thank you, unfortunately it is not quite doing what I want it to.
My SFX that I want to mute is not music playing in the background, but rather sounds that are in the over state of various buttons Does anyone have ideas on how to accomplish this?]]></description>
		<content:encoded><![CDATA[<p>This tutorial was helpful, thank you, unfortunately it is not quite doing what I want it to.<br />
My SFX that I want to mute is not music playing in the background, but rather sounds that are in the over state of various buttons Does anyone have ideas on how to accomplish this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rocky</title>
		<link>http://www.schoolofflash.com/2008/04/flash-cs3-tutorial-volume-toggle-switch/comment-page-1/#comment-1883</link>
		<dc:creator>Rocky</dc:creator>
		<pubDate>Thu, 19 May 2011 03:11:54 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/04/22/flash-cs3-tutorial-volume-toggle-switch/#comment-1883</guid>
		<description><![CDATA[Please ignore my previous post. I got it working now :)]]></description>
		<content:encoded><![CDATA[<p>Please ignore my previous post. I got it working now <img src='http://www.schoolofflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rocky</title>
		<link>http://www.schoolofflash.com/2008/04/flash-cs3-tutorial-volume-toggle-switch/comment-page-1/#comment-1880</link>
		<dc:creator>Rocky</dc:creator>
		<pubDate>Thu, 19 May 2011 01:54:26 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/04/22/flash-cs3-tutorial-volume-toggle-switch/#comment-1880</guid>
		<description><![CDATA[Hi,

Could anyone please asssist me?

When I click on the &quot;mute&quot; button, the slider will automatically go to the very left (indicating that its muted and no volume). How do I get the slider back to its previous position if I click on the &quot;Unmute&quot; button?

Cheers.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Could anyone please asssist me?</p>
<p>When I click on the &#8220;mute&#8221; button, the slider will automatically go to the very left (indicating that its muted and no volume). How do I get the slider back to its previous position if I click on the &#8220;Unmute&#8221; button?</p>
<p>Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pharos</title>
		<link>http://www.schoolofflash.com/2008/04/flash-cs3-tutorial-volume-toggle-switch/comment-page-1/#comment-466</link>
		<dc:creator>Pharos</dc:creator>
		<pubDate>Mon, 25 Jan 2010 03:30:40 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/04/22/flash-cs3-tutorial-volume-toggle-switch/#comment-466</guid>
		<description><![CDATA[Thank you very much for this great tutorial.

I do have one favor to ask, though.  Could you please tell us how to make the music loop endlessly?

I&#039;ve tried figuring this out on my own, but have had no luck.  I urgently need it.

Thank you.]]></description>
		<content:encoded><![CDATA[<p>Thank you very much for this great tutorial.</p>
<p>I do have one favor to ask, though.  Could you please tell us how to make the music loop endlessly?</p>
<p>I&#8217;ve tried figuring this out on my own, but have had no luck.  I urgently need it.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel.</title>
		<link>http://www.schoolofflash.com/2008/04/flash-cs3-tutorial-volume-toggle-switch/comment-page-1/#comment-465</link>
		<dc:creator>Gabriel.</dc:creator>
		<pubDate>Thu, 21 Jan 2010 21:52:19 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/04/22/flash-cs3-tutorial-volume-toggle-switch/#comment-465</guid>
		<description><![CDATA[Hi!

To add a progressive balance change to right i&#039;m ussing this code (functions!).

//Start Fade Center Right by ussing Mat.abs function//

var req:URLRequest = new URLRequest(&quot;1.mp3&quot;);
snd.load(req);
var panCounter:Number = 0;

var trans:SoundTransform;
trans = new SoundTransform(1, 0);
var channel:SoundChannel = snd.play(0, 1, trans);
channel.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);
addEventListener(Event.ENTER_FRAME, onEnterFrame);
function onEnterFrame(event:Event):void
{
trans.pan = Math.abs(panCounter);
channel.soundTransform = trans; // or SoundMixer.soundTransform = trans;
panCounter += 0.05;
if(panCounter == int(panCounter))
{
	panCounter == 1
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
	}
}



function onPlaybackComplete(event:Event):void
{
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
}

//End Fade Center Right by ussing Mat.abs function//

How to do to obtain &quot;zero&quot; (0) and stop calculation routine?

This is for stablish &quot;zero&quot; as Volume value!.

Thanks again!. :D]]></description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>To add a progressive balance change to right i&#8217;m ussing this code (functions!).</p>
<p>//Start Fade Center Right by ussing Mat.abs function//</p>
<p>var req:URLRequest = new URLRequest(&#8220;1.mp3&#8243;);<br />
snd.load(req);<br />
var panCounter:Number = 0;</p>
<p>var trans:SoundTransform;<br />
trans = new SoundTransform(1, 0);<br />
var channel:SoundChannel = snd.play(0, 1, trans);<br />
channel.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);<br />
addEventListener(Event.ENTER_FRAME, onEnterFrame);<br />
function onEnterFrame(event:Event):void<br />
{<br />
trans.pan = Math.abs(panCounter);<br />
channel.soundTransform = trans; // or SoundMixer.soundTransform = trans;<br />
panCounter += 0.05;<br />
if(panCounter == int(panCounter))<br />
{<br />
	panCounter == 1<br />
removeEventListener(Event.ENTER_FRAME, onEnterFrame);<br />
	}<br />
}</p>
<p>function onPlaybackComplete(event:Event):void<br />
{<br />
removeEventListener(Event.ENTER_FRAME, onEnterFrame);<br />
}</p>
<p>//End Fade Center Right by ussing Mat.abs function//</p>
<p>How to do to obtain &#8220;zero&#8221; (0) and stop calculation routine?</p>
<p>This is for stablish &#8220;zero&#8221; as Volume value!.</p>
<p>Thanks again!. <img src='http://www.schoolofflash.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel.</title>
		<link>http://www.schoolofflash.com/2008/04/flash-cs3-tutorial-volume-toggle-switch/comment-page-1/#comment-464</link>
		<dc:creator>Gabriel.</dc:creator>
		<pubDate>Thu, 21 Jan 2010 04:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/04/22/flash-cs3-tutorial-volume-toggle-switch/#comment-464</guid>
		<description><![CDATA[:)
Solved again! :)

You can see the final app here:

http://www.estelarisradio.net/dos

Great Tuto! :D

Cheers and Thanks a lot!

Gabriel.]]></description>
		<content:encoded><![CDATA[<p> <img src='http://www.schoolofflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Solved again! <img src='http://www.schoolofflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You can see the final app here:</p>
<p><a href="http://www.estelarisradio.net/dos" rel="nofollow">http://www.estelarisradio.net/dos</a></p>
<p>Great Tuto! <img src='http://www.schoolofflash.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Cheers and Thanks a lot!</p>
<p>Gabriel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel.</title>
		<link>http://www.schoolofflash.com/2008/04/flash-cs3-tutorial-volume-toggle-switch/comment-page-1/#comment-463</link>
		<dc:creator>Gabriel.</dc:creator>
		<pubDate>Fri, 15 Jan 2010 22:24:18 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/04/22/flash-cs3-tutorial-volume-toggle-switch/#comment-463</guid>
		<description><![CDATA[Hi again!.

How to add a balance control to my player?.

Too Thanks!]]></description>
		<content:encoded><![CDATA[<p>Hi again!.</p>
<p>How to add a balance control to my player?.</p>
<p>Too Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel</title>
		<link>http://www.schoolofflash.com/2008/04/flash-cs3-tutorial-volume-toggle-switch/comment-page-1/#comment-462</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Tue, 29 Dec 2009 00:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/04/22/flash-cs3-tutorial-volume-toggle-switch/#comment-462</guid>
		<description><![CDATA[Solved! :D

To Auto-Load Sound.

I&#039;ve added this near of Line 30


//AutoPlay
sc=music.play(pos);
//isPlaying true
dyn_txt.text=&quot;Playing...&quot;;

To Refresh Streammed Sound:


I`ve added this since Line 67 (Stop Routine) to kill old sound and Re-Load the same sound in real time:

function stopMusic(evt:MouseEvent)
{
	if(sc!=null)
	{
		sc.stop();
		sc = null;
		music = new Sound(new URLRequest(&quot;http://estelarisradio.net:8078/;&quot;));
		pos=0;
		isPlaying = false;
		mute_btn.gotoAndStop(1);
		volume_mc.slider_mc.x=100;
		dyn_txt.text=&quot;Stopped...&quot;;
	}
}

Notice this:

music = new Sound(new URLRequest(&quot;http://estelarisradio.net:8078/;&quot;));

This solve the issue on Stop and Play again...Sound is refreshed!

Too Thanks!]]></description>
		<content:encoded><![CDATA[<p>Solved! <img src='http://www.schoolofflash.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>To Auto-Load Sound.</p>
<p>I&#8217;ve added this near of Line 30</p>
<p>//AutoPlay<br />
sc=music.play(pos);<br />
//isPlaying true<br />
dyn_txt.text=&#8221;Playing&#8230;&#8221;;</p>
<p>To Refresh Streammed Sound:</p>
<p>I`ve added this since Line 67 (Stop Routine) to kill old sound and Re-Load the same sound in real time:</p>
<p>function stopMusic(evt:MouseEvent)<br />
{<br />
	if(sc!=null)<br />
	{<br />
		sc.stop();<br />
		sc = null;<br />
		music = new Sound(new URLRequest(&#8220;http://estelarisradio.net:8078/;&#8221;));<br />
		pos=0;<br />
		isPlaying = false;<br />
		mute_btn.gotoAndStop(1);<br />
		volume_mc.slider_mc.x=100;<br />
		dyn_txt.text=&#8221;Stopped&#8230;&#8221;;<br />
	}<br />
}</p>
<p>Notice this:</p>
<p>music = new Sound(new URLRequest(&#8220;http://estelarisradio.net:8078/;&#8221;));</p>
<p>This solve the issue on Stop and Play again&#8230;Sound is refreshed!</p>
<p>Too Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
