<?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: Looping Sound in Flex and AIR</title>
	<atom:link href="http://whatwouldnickdo.com/wordpress/509/looping-sound-in-flex-and-air/feed/" rel="self" type="application/rss+xml" />
	<link>http://whatwouldnickdo.com/wordpress/509/looping-sound-in-flex-and-air/</link>
	<description>Discussions on Programming, Linux, and whatever else.</description>
	<lastBuildDate>Tue, 27 Jul 2010 12:00:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: avrs</title>
		<link>http://whatwouldnickdo.com/wordpress/509/looping-sound-in-flex-and-air/comment-page-1/#comment-1983</link>
		<dc:creator>avrs</dc:creator>
		<pubDate>Fri, 14 May 2010 07:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://whatwouldnickdo.com/wordpress/?p=509#comment-1983</guid>
		<description>it&#039;s weird, I used SOUND_COMPLETE to loop my sound and the looping wasn&#039;t seamless compared to AS2. I used your above example + SOUND_COMPLETE. Now the sound will loop 68 years, then it will execute the sound complete which will make it play again for 68 years (might have a slight noticable gap but still better than stopping).. and so on :D

var mySoundChannel = mySound1.play(0, int.MAX_VALUE); //play with maximum possible looping

mySoundChannel.addEventListener(Event.SOUND_COMPLETE, soundComplete); //add an event listener to check if sound has completed looping

function soundComplete(event){
	trace(&quot;Looping...&quot;);
	mySoundChannel = mySound1.play(0, int.MAX_VALUE); //play with maximum possible looping
	mySoundChannel.addEventListener(Event.SOUND_COMPLETE, soundComplete); //add an event listener to check if sound has completed looping
}

C&#039;mon Adobe fix that SOUND_COMPLETE glitch already or give us true looping.</description>
		<content:encoded><![CDATA[<p>it&#8217;s weird, I used SOUND_COMPLETE to loop my sound and the looping wasn&#8217;t seamless compared to AS2. I used your above example + SOUND_COMPLETE. Now the sound will loop 68 years, then it will execute the sound complete which will make it play again for 68 years (might have a slight noticable gap but still better than stopping).. and so on <img src='http://whatwouldnickdo.com/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>var mySoundChannel = mySound1.play(0, int.MAX_VALUE); //play with maximum possible looping</p>
<p>mySoundChannel.addEventListener(Event.SOUND_COMPLETE, soundComplete); //add an event listener to check if sound has completed looping</p>
<p>function soundComplete(event){<br />
	trace(&#8220;Looping&#8230;&#8221;);<br />
	mySoundChannel = mySound1.play(0, int.MAX_VALUE); //play with maximum possible looping<br />
	mySoundChannel.addEventListener(Event.SOUND_COMPLETE, soundComplete); //add an event listener to check if sound has completed looping<br />
}</p>
<p>C&#8217;mon Adobe fix that SOUND_COMPLETE glitch already or give us true looping.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://whatwouldnickdo.com/wordpress/509/looping-sound-in-flex-and-air/comment-page-1/#comment-1960</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Mon, 10 May 2010 13:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://whatwouldnickdo.com/wordpress/?p=509#comment-1960</guid>
		<description>Yea, they do stuff that doesn&#039;t make a whole lot of sense sometimes.</description>
		<content:encoded><![CDATA[<p>Yea, they do stuff that doesn&#8217;t make a whole lot of sense sometimes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ansury</title>
		<link>http://whatwouldnickdo.com/wordpress/509/looping-sound-in-flex-and-air/comment-page-1/#comment-1958</link>
		<dc:creator>Ansury</dc:creator>
		<pubDate>Mon, 10 May 2010 01:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://whatwouldnickdo.com/wordpress/?p=509#comment-1958</guid>
		<description>Scratch that.  Adobe, you&#039;re killing me.  The &quot;usually&quot; I mentioned above is not the case here.  Apparently 0 == 1 to whoever designed Sound.play(), so you do have to use int.MAX_VALUE for a never ending repeat!</description>
		<content:encoded><![CDATA[<p>Scratch that.  Adobe, you&#8217;re killing me.  The &#8220;usually&#8221; I mentioned above is not the case here.  Apparently 0 == 1 to whoever designed Sound.play(), so you do have to use int.MAX_VALUE for a never ending repeat!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ansury</title>
		<link>http://whatwouldnickdo.com/wordpress/509/looping-sound-in-flex-and-air/comment-page-1/#comment-1957</link>
		<dc:creator>Ansury</dc:creator>
		<pubDate>Mon, 10 May 2010 01:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://whatwouldnickdo.com/wordpress/?p=509#comment-1957</guid>
		<description>Usually a 0 (rather than int.MAX_VALUE) means &quot;forever&quot;, and since that&#039;s the default parameter value for play() I&#039;d imagine that&#039;s the case here as usual.  Still, I guess 65 years means the point is moot.  :)</description>
		<content:encoded><![CDATA[<p>Usually a 0 (rather than int.MAX_VALUE) means &#8220;forever&#8221;, and since that&#8217;s the default parameter value for play() I&#8217;d imagine that&#8217;s the case here as usual.  Still, I guess 65 years means the point is moot.  <img src='http://whatwouldnickdo.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
