<?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/blog/2008/04/flash-cs3-tutorial-volume-toggle-switch/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.schoolofflash.com/blog/2008/04/flash-cs3-tutorial-volume-toggle-switch/</link>
	<description>Flash and ActionScript Tutorials</description>
	<lastBuildDate>Wed, 07 Apr 2010 18:49:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Pharos</title>
		<link>http://www.schoolofflash.com/blog/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>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/blog/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>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/blog/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/blog/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>:)
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/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Solved again! <img src='http://www.schoolofflash.com/blog/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/blog/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/blog/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>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/blog/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>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/blog/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>
	<item>
		<title>By: Gabriel</title>
		<link>http://www.schoolofflash.com/blog/2008/04/flash-cs3-tutorial-volume-toggle-switch/comment-page-1/#comment-461</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Sat, 26 Dec 2009 01:31:46 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/04/22/flash-cs3-tutorial-volume-toggle-switch/#comment-461</guid>
		<description>Hi.

How to kill sound when i press Stop Button?.

I`m ussing this to broadcast radio online.

Each time i press Stop Button , then Play Button, it reload Sound at start..I need when i press Play Button again, sound is refreshed!.

i hope you understand me!

Cheers!.</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>How to kill sound when i press Stop Button?.</p>
<p>I`m ussing this to broadcast radio online.</p>
<p>Each time i press Stop Button , then Play Button, it reload Sound at start..I need when i press Play Button again, sound is refreshed!.</p>
<p>i hope you understand me!</p>
<p>Cheers!.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel</title>
		<link>http://www.schoolofflash.com/blog/2008/04/flash-cs3-tutorial-volume-toggle-switch/comment-page-1/#comment-460</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Thu, 24 Dec 2009 07:11:55 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/04/22/flash-cs3-tutorial-volume-toggle-switch/#comment-460</guid>
		<description>1.- I need the sound starts without press play button.

2.- After i stop, i need to re-start (Play button) justly where i`ve stopped, instead at begin of sound.

How to?</description>
		<content:encoded><![CDATA[<p>1.- I need the sound starts without press play button.</p>
<p>2.- After i stop, i need to re-start (Play button) justly where i`ve stopped, instead at begin of sound.</p>
<p>How to?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel</title>
		<link>http://www.schoolofflash.com/blog/2008/04/flash-cs3-tutorial-volume-toggle-switch/comment-page-1/#comment-459</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Wed, 23 Dec 2009 02:48:24 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/04/22/flash-cs3-tutorial-volume-toggle-switch/#comment-459</guid>
		<description>Mehmet

Based on your app, i&#039;ve created mine own and i&#039;ve used a shoutcast adress instead a local sound...how do u do to automatically load sound, so that, no need to press START to start ear?

Thanks!</description>
		<content:encoded><![CDATA[<p>Mehmet</p>
<p>Based on your app, i&#8217;ve created mine own and i&#8217;ve used a shoutcast adress instead a local sound&#8230;how do u do to automatically load sound, so that, no need to press START to start ear?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel</title>
		<link>http://www.schoolofflash.com/blog/2008/04/flash-cs3-tutorial-volume-toggle-switch/comment-page-1/#comment-458</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Sun, 20 Dec 2009 18:12:32 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/04/22/flash-cs3-tutorial-volume-toggle-switch/#comment-458</guid>
		<description>Hi.

I don&#039;t understand this...

I`ve downloaded source and then i&#039;ve edited to load a shoutcast streamming ip. App almost perfectly functions, but, sometimes, when i open it, its buttons show themsefves inactive.

I am working to correct it but i`m stopped...I Don&#039;t Understand.

Can u help me?.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>I don&#8217;t understand this&#8230;</p>
<p>I`ve downloaded source and then i&#8217;ve edited to load a shoutcast streamming ip. App almost perfectly functions, but, sometimes, when i open it, its buttons show themsefves inactive.</p>
<p>I am working to correct it but i`m stopped&#8230;I Don&#8217;t Understand.</p>
<p>Can u help me?.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: armavista</title>
		<link>http://www.schoolofflash.com/blog/2008/04/flash-cs3-tutorial-volume-toggle-switch/comment-page-1/#comment-457</link>
		<dc:creator>armavista</dc:creator>
		<pubDate>Sat, 07 Nov 2009 03:15:23 +0000</pubDate>
		<guid isPermaLink="false">http://schoolofflash.com/2008/04/22/flash-cs3-tutorial-volume-toggle-switch/#comment-457</guid>
		<description>Thanks! The tutorial is very clear. All you need for a nice handy player is here.

As i&#039;m using more than one stage in my flash file, i was wondering if there were a way to keep the sound volume and the volume slider from going back to initial level when shifting from one stage to the other??? (as for play and stop buttons, they work well even in multiple stages)

Thanks to anyone who could give me a hint...</description>
		<content:encoded><![CDATA[<p>Thanks! The tutorial is very clear. All you need for a nice handy player is here.</p>
<p>As i&#8217;m using more than one stage in my flash file, i was wondering if there were a way to keep the sound volume and the volume slider from going back to initial level when shifting from one stage to the other??? (as for play and stop buttons, they work well even in multiple stages)</p>
<p>Thanks to anyone who could give me a hint&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
