<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Sound.position &#8220;Gotcha&#8221; with Multiple Calls to Sound.loadSound()</title>
	<link>http://www.quip.net/blog/2007/flash/actionscript-20/sound-position-gotcha</link>
	<description>Luck is the residue of good design.</description>
	<pubDate>Tue, 06 Jan 2009 07:37:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/sound-position-gotcha#comment-135056</link>
		<pubDate>Sat, 16 Feb 2008 23:50:31 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/sound-position-gotcha#comment-135056</guid>
					<description>justin,

Thanks!</description>
		<content:encoded><![CDATA[<p>justin,</p>
<p>Thanks!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: justin</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/sound-position-gotcha#comment-133657</link>
		<pubDate>Thu, 14 Feb 2008 11:18:41 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/sound-position-gotcha#comment-133657</guid>
					<description>keep up the good work you are a big help</description>
		<content:encoded><![CDATA[<p>keep up the good work you are a big help
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/sound-position-gotcha#comment-15580</link>
		<pubDate>Thu, 01 Feb 2007 21:05:01 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/sound-position-gotcha#comment-15580</guid>
					<description>Chris,

I may not have been especially clear on this one.  That code sample at the end is loading a &lt;em&gt;new&lt;/em&gt; song into the same &lt;code&gt;Sound&lt;/code&gt; instance.  In this case, I was using a single &lt;code&gt;Sound&lt;/code&gt; instance to load dozens of audio files, and the problem was that the &lt;code&gt;Sound.position&lt;/code&gt; property failed to start at zero with each new file.  Maybe the &lt;code&gt;Sound&lt;/code&gt; class is designed that way, but it's not what I was expecting.  So the &lt;code&gt;start()&lt;/code&gt; call provides that &quot;reset&quot; and the immediate &lt;code&gt;loadSound()&lt;/code&gt; call loads the next song so quickly, there isn't enough time to hear anything from the previous file.  Which solved my problem.  :)</description>
		<content:encoded><![CDATA[<p>Chris,</p>
<p>I may not have been especially clear on this one.  That code sample at the end is loading a <em>new</em> song into the same <code>Sound</code> instance.  In this case, I was using a single <code>Sound</code> instance to load dozens of audio files, and the problem was that the <code>Sound.position</code> property failed to start at zero with each new file.  Maybe the <code>Sound</code> class is designed that way, but it&#8217;s not what I was expecting.  So the <code>start()</code> call provides that &#8220;reset&#8221; and the immediate <code>loadSound()</code> call loads the next song so quickly, there isn&#8217;t enough time to hear anything from the previous file.  Which solved my problem.  <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Chris</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/sound-position-gotcha#comment-15577</link>
		<pubDate>Thu, 01 Feb 2007 20:57:01 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/sound-position-gotcha#comment-15577</guid>
					<description>But if you just call the start function on the last sound object created it will just jump to the position you want...why re-load the same song?  I had this same problem and just realized that you need to offer a scrubber for each song so they can go to 0 or 100% of the song, or go to another song...shrug, maybe i am misunderstood what you are saying.</description>
		<content:encoded><![CDATA[<p>But if you just call the start function on the last sound object created it will just jump to the position you want&#8230;why re-load the same song?  I had this same problem and just realized that you need to offer a scrubber for each song so they can go to 0 or 100% of the song, or go to another song&#8230;shrug, maybe i am misunderstood what you are saying.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
