<?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>Sat, 17 Jul 2010 22:04:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<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>
	<item>
		<title>By: ZennMaster</title>
		<link>http://doogog.com/music-looping-in-as3.html/comment-page-1#comment-75</link>
		<dc:creator>ZennMaster</dc:creator>
		<pubDate>Sun, 10 Aug 2008 10:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://doogog.com/music-looping-in-as3.html#comment-75</guid>
		<description>Thanks man, i&#039;ve been searchin for something like this simple musicChannel = music.play(0, int.MAX_VALUE);</description>
		<content:encoded><![CDATA[<p>Thanks man, i&#8217;ve been searchin for something like this simple musicChannel = music.play(0, int.MAX_VALUE);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David B</title>
		<link>http://doogog.com/music-looping-in-as3.html/comment-page-1#comment-68</link>
		<dc:creator>David B</dc:creator>
		<pubDate>Tue, 24 Jun 2008 19:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://doogog.com/music-looping-in-as3.html#comment-68</guid>
		<description>I&#039;ve used the the same methods as thise described above several times. A simpler way to achieve the same thing is to use the following:

musicChannel = music.play(0, int.MAX_VALUE);

This basically takes the maxium integer value available in AS3 as the second param. It should be sufficient enough for most use cases.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve used the the same methods as thise described above several times. A simpler way to achieve the same thing is to use the following:</p>
<p>musicChannel = music.play(0, int.MAX_VALUE);</p>
<p>This basically takes the maxium integer value available in AS3 as the second param. It should be sufficient enough for most use cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#8230; @ a distance &#8230; &#187; Actionscript</title>
		<link>http://doogog.com/music-looping-in-as3.html/comment-page-1#comment-67</link>
		<dc:creator>&#8230; @ a distance &#8230; &#187; Actionscript</dc:creator>
		<pubDate>Tue, 24 Jun 2008 13:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://doogog.com/music-looping-in-as3.html#comment-67</guid>
		<description>[...] or twice. Again I went around reading on codes.. And found I wasn&#8217;t alone. Then I came across a simpler workaround using functions call, better than the former [...]</description>
		<content:encoded><![CDATA[<p>[...] or twice. Again I went around reading on codes.. And found I wasn&#8217;t alone. Then I came across a simpler workaround using functions call, better than the former [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruth</title>
		<link>http://doogog.com/music-looping-in-as3.html/comment-page-1#comment-54</link>
		<dc:creator>Ruth</dc:creator>
		<pubDate>Thu, 08 May 2008 15:24:46 +0000</pubDate>
		<guid isPermaLink="false">http://doogog.com/music-looping-in-as3.html#comment-54</guid>
		<description>i&#039;m sry, but wat is that musicChannel != null checking?</description>
		<content:encoded><![CDATA[<p>i&#8217;m sry, but wat is that musicChannel != null checking?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jadon</title>
		<link>http://doogog.com/music-looping-in-as3.html/comment-page-1#comment-36</link>
		<dc:creator>Jadon</dc:creator>
		<pubDate>Tue, 26 Feb 2008 01:35:49 +0000</pubDate>
		<guid isPermaLink="false">http://doogog.com/music-looping-in-as3.html#comment-36</guid>
		<description>cool thanks, although i think:

musicChannel.removeEventListener(Event.SOUND_COMPLETE, loopBackgroundMusic);

should be:

musicChannel.removeEventListener(Event.SOUND_COMPLETE, loopMusic);</description>
		<content:encoded><![CDATA[<p>cool thanks, although i think:</p>
<p>musicChannel.removeEventListener(Event.SOUND_COMPLETE, loopBackgroundMusic);</p>
<p>should be:</p>
<p>musicChannel.removeEventListener(Event.SOUND_COMPLETE, loopMusic);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
