<?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>Thu, 05 Jan 2012 01:15:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<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>
	<item>
		<title>By: Tom</title>
		<link>http://doogog.com/music-looping-in-as3.html/comment-page-1#comment-85</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 17 Oct 2008 12:27:23 +0000</pubDate>
		<guid isPermaLink="false">http://doogog.com/music-looping-in-as3.html#comment-85</guid>
		<description>I think you can get around having to remove the listeners every time by using weak references, detailed here:

http://www.gskinner.com/blog/archives/2006/07/as3_weakly_refe.html

I&#039;ve not tried it, but it sounds like what you&#039;re after - weak references don&#039;t stop something being garbage collected.

Loved Zunderfury, by the way!</description>
		<content:encoded><![CDATA[<p>I think you can get around having to remove the listeners every time by using weak references, detailed here:</p>
<p><a href="http://www.gskinner.com/blog/archives/2006/07/as3_weakly_refe.html" rel="nofollow">http://www.gskinner.com/blog/archives/2006/07/as3_weakly_refe.html</a></p>
<p>I&#8217;ve not tried it, but it sounds like what you&#8217;re after &#8211; weak references don&#8217;t stop something being garbage collected.</p>
<p>Loved Zunderfury, by the way!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

