<?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: Sound in flash cs3 part 2 &#8211; pause</title>
	<atom:link href="http://blog.tudwaythecore.com/2008/04/sound-in-flash-cs3-part-2-pause/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tudwaythecore.com/2008/04/sound-in-flash-cs3-part-2-pause/</link>
	<description>blog</description>
	<lastBuildDate>Wed, 23 Jun 2010 07:10:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Shawn</title>
		<link>http://blog.tudwaythecore.com/2008/04/sound-in-flash-cs3-part-2-pause/comment-page-1/#comment-1467</link>
		<dc:creator>Shawn</dc:creator>
		<pubDate>Fri, 30 Oct 2009 13:05:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tudwaythecore.com/?p=15#comment-1467</guid>
		<description>oh and I did find this script
that has the button functionality that I am looking for
(one button which starts/stops the audio file.
but I can&#039;t seem to rig it into your script 
(is seems like it should be easy to do???

var loadSnd:URLRequest = new URLRequest(&quot;ax Mr .l..mp3&quot;);
var thisSnd:Sound = new Sound();
thisSnd.load(loadSnd);

play_btn.addEventListener(MouseEvent.CLICK,playF);
stop_btn.addEventListener(MouseEvent.CLICK,stopF);

var sndTrans:SoundChannel = new SoundChannel();
var st:SoundTransform = new SoundTransform();

stop_btn.visible = false;


function playF(e:MouseEvent):void
{
	SoundMixer.stopAll();
	st.volume = .9;
	sndTrans.soundTransform = st;
	sndTrans = thisSnd.play();
	play_btn.visible = false;
	stop_btn.visible = true;
}


function stopF(e:MouseEvent):void
{
	sndTrans.stop();
	play_btn.visible = true;
	stop_btn.visible = false;
}</description>
		<content:encoded><![CDATA[<p>oh and I did find this script<br />
that has the button functionality that I am looking for<br />
(one button which starts/stops the audio file.<br />
but I can&#8217;t seem to rig it into your script<br />
(is seems like it should be easy to do???</p>
<p>var loadSnd:URLRequest = new URLRequest(&#8220;ax Mr .l..mp3&#8243;);<br />
var thisSnd:Sound = new Sound();<br />
thisSnd.load(loadSnd);</p>
<p>play_btn.addEventListener(MouseEvent.CLICK,playF);<br />
stop_btn.addEventListener(MouseEvent.CLICK,stopF);</p>
<p>var sndTrans:SoundChannel = new SoundChannel();<br />
var st:SoundTransform = new SoundTransform();</p>
<p>stop_btn.visible = false;</p>
<p>function playF(e:MouseEvent):void<br />
{<br />
	SoundMixer.stopAll();<br />
	st.volume = .9;<br />
	sndTrans.soundTransform = st;<br />
	sndTrans = thisSnd.play();<br />
	play_btn.visible = false;<br />
	stop_btn.visible = true;<br />
}</p>
<p>function stopF(e:MouseEvent):void<br />
{<br />
	sndTrans.stop();<br />
	play_btn.visible = true;<br />
	stop_btn.visible = false;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn</title>
		<link>http://blog.tudwaythecore.com/2008/04/sound-in-flash-cs3-part-2-pause/comment-page-1/#comment-1466</link>
		<dc:creator>Shawn</dc:creator>
		<pubDate>Fri, 30 Oct 2009 13:00:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tudwaythecore.com/?p=15#comment-1466</guid>
		<description>Hey great tutorial.

I do have one question
how can I have the sound load and play immediately without having to invoke the play button.

what I need it music to load on my site.
then give the visitor the option to pause the music and then resume it again later.

any suggestions?

thanks</description>
		<content:encoded><![CDATA[<p>Hey great tutorial.</p>
<p>I do have one question<br />
how can I have the sound load and play immediately without having to invoke the play button.</p>
<p>what I need it music to load on my site.<br />
then give the visitor the option to pause the music and then resume it again later.</p>
<p>any suggestions?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tudway</title>
		<link>http://blog.tudwaythecore.com/2008/04/sound-in-flash-cs3-part-2-pause/comment-page-1/#comment-11</link>
		<dc:creator>tudway</dc:creator>
		<pubDate>Fri, 08 Aug 2008 09:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tudwaythecore.com/?p=15#comment-11</guid>
		<description>I have been moving over to a new site lately www.tudway-experimental.com so i will write a tutorial there for you. Post a comment on one of the tutorials there so i know you are reading them. Also i have done some experiments involving loading an external sound. If you click on the experiments tab on my new site you should see some interesting stuff.</description>
		<content:encoded><![CDATA[<p>I have been moving over to a new site lately <a href="http://www.tudway-experimental.com" rel="nofollow">http://www.tudway-experimental.com</a> so i will write a tutorial there for you. Post a comment on one of the tutorials there so i know you are reading them. Also i have done some experiments involving loading an external sound. If you click on the experiments tab on my new site you should see some interesting stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.tudwaythecore.com/2008/04/sound-in-flash-cs3-part-2-pause/comment-page-1/#comment-10</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 07 Aug 2008 19:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tudwaythecore.com/?p=15#comment-10</guid>
		<description>Fantastic !!&lt;br/&gt;&lt;br/&gt;Any chance you could provide code to:&lt;br/&gt;&lt;br/&gt;1. load an &#039;external&#039; .mp3&lt;br/&gt;2. play button code&lt;br/&gt;3. your (awesome) pause button code&lt;br/&gt;4. stop button code&lt;br/&gt;&lt;br/&gt;all in one code chunk?&lt;br/&gt;&lt;br/&gt;Loads of people are searching for the above to create simple, 3 button audio/image pieces in Flash.&lt;br/&gt;&lt;br/&gt;Many Mahalos&lt;br/&gt;&lt;br/&gt;bill - hawaii</description>
		<content:encoded><![CDATA[<p>Fantastic !!</p>
<p>Any chance you could provide code to:</p>
<p>1. load an &#8216;external&#8217; .mp3<br />2. play button code<br />3. your (awesome) pause button code<br />4. stop button code</p>
<p>all in one code chunk?</p>
<p>Loads of people are searching for the above to create simple, 3 button audio/image pieces in Flash.</p>
<p>Many Mahalos</p>
<p>bill &#8211; hawaii</p>
]]></content:encoded>
	</item>
</channel>
</rss>
