<?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: Music Looping in AS3</title>
	<atom:link href="http://doogog.com/music-looping-in-as3.html/feed" rel="self" type="application/rss+xml" />
	<link>http://doogog.com/music-looping-in-as3.html</link>
	<description>Lots of fun games!  Yay!</description>
	<lastBuildDate>Fri, 11 May 2012 12:12:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Bibliography &#124; Final Project</title>
		<link>http://doogog.com/music-looping-in-as3.html/comment-page-1#comment-378</link>
		<dc:creator>Bibliography &#124; Final Project</dc:creator>
		<pubDate>Mon, 23 Apr 2012 14:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://doogog.com/music-looping-in-as3.html#comment-378</guid>
		<description>[...] Doogog.com » Blog Archive » Music Looping in AS3. Available at: http://doogog.com/music-looping-in-as3.html  [Accessed April 18, [...]</description>
		<content:encoded><![CDATA[<p>[...] Doogog.com » Blog Archive » Music Looping in AS3. Available at: <a href="http://doogog.com/music-looping-in-as3.html" rel="nofollow">http://doogog.com/music-looping-in-as3.html</a>  [Accessed April 18, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ifirme.ro</title>
		<link>http://doogog.com/music-looping-in-as3.html/comment-page-1#comment-320</link>
		<dc:creator>ifirme.ro</dc:creator>
		<pubDate>Fri, 22 Jul 2011 06:49:50 +0000</pubDate>
		<guid isPermaLink="false">http://doogog.com/music-looping-in-as3.html#comment-320</guid>
		<description>if you add a listener, use it !

function loopMusic(e:Event):void
{
			soundChannel.removeEventListener(Event.SOUND_COMPLETE, loopMusic);
    		soundChannel = sound.play();
			soundChannel.addEventListener(Event.SOUND_COMPLETE, loopMusic);
    
}</description>
		<content:encoded><![CDATA[<p>if you add a listener, use it !</p>
<p>function loopMusic(e:Event):void<br />
{<br />
			soundChannel.removeEventListener(Event.SOUND_COMPLETE, loopMusic);<br />
    		soundChannel = sound.play();<br />
			soundChannel.addEventListener(Event.SOUND_COMPLETE, loopMusic);</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ethian</title>
		<link>http://doogog.com/music-looping-in-as3.html/comment-page-1#comment-310</link>
		<dc:creator>Ethian</dc:creator>
		<pubDate>Sun, 10 Apr 2011 04:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://doogog.com/music-looping-in-as3.html#comment-310</guid>
		<description>Hi i&#039;m new to as3, i try the code, there&#039;s no error but my music just won&#039;t loop...did i miss something that&#039;s not written here?</description>
		<content:encoded><![CDATA[<p>Hi i&#8217;m new to as3, i try the code, there&#8217;s no error but my music just won&#8217;t loop&#8230;did i miss something that&#8217;s not written here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nconde25</title>
		<link>http://doogog.com/music-looping-in-as3.html/comment-page-1#comment-220</link>
		<dc:creator>nconde25</dc:creator>
		<pubDate>Sat, 18 Dec 2010 02:45:06 +0000</pubDate>
		<guid isPermaLink="false">http://doogog.com/music-looping-in-as3.html#comment-220</guid>
		<description>@peter:
or you could use a FOR?</description>
		<content:encoded><![CDATA[<p>@peter:<br />
or you could use a FOR?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sold Out Activist</title>
		<link>http://doogog.com/music-looping-in-as3.html/comment-page-1#comment-181</link>
		<dc:creator>Sold Out Activist</dc:creator>
		<pubDate>Wed, 03 Nov 2010 03:08:48 +0000</pubDate>
		<guid isPermaLink="false">http://doogog.com/music-looping-in-as3.html#comment-181</guid>
		<description>@alex It&#039;s a good idea, but you forgot to remove the event listener before adding it again. Each playback will add another event listener. After 3 loops, it will have 6 event listeners attached to it, growing exponentially.</description>
		<content:encoded><![CDATA[<p>@alex It&#8217;s a good idea, but you forgot to remove the event listener before adding it again. Each playback will add another event listener. After 3 loops, it will have 6 event listeners attached to it, growing exponentially.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://doogog.com/music-looping-in-as3.html/comment-page-1#comment-174</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Sun, 08 Aug 2010 05:44:28 +0000</pubDate>
		<guid isPermaLink="false">http://doogog.com/music-looping-in-as3.html#comment-174</guid>
		<description>Hey I like your solution Alex!</description>
		<content:encoded><![CDATA[<p>Hey I like your solution Alex!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://doogog.com/music-looping-in-as3.html/comment-page-1#comment-173</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sat, 17 Jul 2010 22:04:18 +0000</pubDate>
		<guid isPermaLink="false">http://doogog.com/music-looping-in-as3.html#comment-173</guid>
		<description>Thanks a lot for this solution :-) Love the way and now always use it to control my music!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this solution <img src='http://doogog.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Love the way and now always use it to control my music!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://doogog.com/music-looping-in-as3.html/comment-page-1#comment-121</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 01 May 2009 18:32:32 +0000</pubDate>
		<guid isPermaLink="false">http://doogog.com/music-looping-in-as3.html#comment-121</guid>
		<description>Hey, I used a really simple method to loop sound.

function playSound(event:Event):void
{
	myChannel = mySound.play();
	myChannel.addEventListener(Event.SOUND_COMPLETE, playSound);
}

As for only looping it a certain amount of times...you could just keep duplicating this function but changing the names for however many times you want it to loop.  (playSound1, playSound2, playSound3, etc...)  Then just redirect each function to the next one on SOUND_COMPLETE.</description>
		<content:encoded><![CDATA[<p>Hey, I used a really simple method to loop sound.</p>
<p>function playSound(event:Event):void<br />
{<br />
	myChannel = mySound.play();<br />
	myChannel.addEventListener(Event.SOUND_COMPLETE, playSound);<br />
}</p>
<p>As for only looping it a certain amount of times&#8230;you could just keep duplicating this function but changing the names for however many times you want it to loop.  (playSound1, playSound2, playSound3, etc&#8230;)  Then just redirect each function to the next one on SOUND_COMPLETE.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Looping sounds in ActionScript 3 &#124; The Devign Path</title>
		<link>http://doogog.com/music-looping-in-as3.html/comment-page-1#comment-114</link>
		<dc:creator>Looping sounds in ActionScript 3 &#124; The Devign Path</dc:creator>
		<pubDate>Sun, 01 Mar 2009 19:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://doogog.com/music-looping-in-as3.html#comment-114</guid>
		<description>[...] To loop a sound clip in Flash using ActionScript 3 refer to - http://doogog.com/music-looping-in-as3.html [...]</description>
		<content:encoded><![CDATA[<p>[...] To loop a sound clip in Flash using ActionScript 3 refer to &#8211; <a href="http://doogog.com/music-looping-in-as3.html" rel="nofollow">http://doogog.com/music-looping-in-as3.html</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graeme</title>
		<link>http://doogog.com/music-looping-in-as3.html/comment-page-1#comment-93</link>
		<dc:creator>Graeme</dc:creator>
		<pubDate>Wed, 26 Nov 2008 17:50:41 +0000</pubDate>
		<guid isPermaLink="false">http://doogog.com/music-looping-in-as3.html#comment-93</guid>
		<description>@Ruth the != null is there to prevent an exception being thrown if you try to delete something that is null already</description>
		<content:encoded><![CDATA[<p>@Ruth the != null is there to prevent an exception being thrown if you try to delete something that is null already</p>
]]></content:encoded>
	</item>
</channel>
</rss>

