<?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: QueueLoader AS3 rev 7 + Garbage Collection + SoundManager</title>
	<atom:link href="http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/</link>
	<description>actionscript and creative playground of Donovan Adams</description>
	<lastBuildDate>Thu, 27 Oct 2011 05:40:10 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: djdonovan</title>
		<link>http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/comment-page-1/#comment-924</link>
		<dc:creator>djdonovan</dc:creator>
		<pubDate>Sun, 11 Nov 2007 05:01:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/#comment-924</guid>
		<description>A new version has been posted!</description>
		<content:encoded><![CDATA[<p>A new version has been posted!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/comment-page-1/#comment-910</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Sat, 10 Nov 2007 20:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/#comment-910</guid>
		<description>Nice work, with css and xml loading this would be a killer.

A few suggestions:

* Add a method to prioritize or move objects up the que, this is a good thing to have when you have a que working in the background and you suddenly need to display certain elements as soon as possible.

* Add a method to delete objects from the que.

Thanks for sharing,

Nick</description>
		<content:encoded><![CDATA[<p>Nice work, with css and xml loading this would be a killer.</p>
<p>A few suggestions:</p>
<p>* Add a method to prioritize or move objects up the que, this is a good thing to have when you have a que working in the background and you suddenly need to display certain elements as soon as possible.</p>
<p>* Add a method to delete objects from the que.</p>
<p>Thanks for sharing,</p>
<p>Nick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JUST GOOD DESIGN &#124; BLOG &#187; Dynamic Loading in Flash</title>
		<link>http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/comment-page-1/#comment-799</link>
		<dc:creator>JUST GOOD DESIGN &#124; BLOG &#187; Dynamic Loading in Flash</dc:creator>
		<pubDate>Wed, 07 Nov 2007 17:36:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/#comment-799</guid>
		<description>[...] QueueLoader AS3 rev 7 + Garbage Collection + SoundManager - Donovan [...]</description>
		<content:encoded><![CDATA[<p>[...] QueueLoader AS3 rev 7 + Garbage Collection + SoundManager &#8211; Donovan [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse</title>
		<link>http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/comment-page-1/#comment-539</link>
		<dc:creator>Jesse</dc:creator>
		<pubDate>Wed, 31 Oct 2007 01:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/#comment-539</guid>
		<description>No, you&#039;re right - a private function is that way for a reason.  I should have looked at the constructor. ;)</description>
		<content:encoded><![CDATA[<p>No, you're right &#8211; a private function is that way for a reason.  I should have looked at the constructor. <img src='http://blog.hydrotik.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: djdonovan</title>
		<link>http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/comment-page-1/#comment-536</link>
		<dc:creator>djdonovan</dc:creator>
		<pubDate>Tue, 30 Oct 2007 23:09:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/#comment-536</guid>
		<description>This all looks good Jesse. One thing I ask is you don&#039;t make load next item public:) Reason being, there is a very easy way to bypass failed loads with setting the second argument to true;

&lt;code lang=&quot;actionscript&quot;&gt;
var _oLoader:QueueLoader = new QueueLoader(true, addedDefinitions);
&lt;/code&gt;

But feel free to use it however you want:)  Might be a few days before I can add these updates</description>
		<content:encoded><![CDATA[<p>This all looks good Jesse. One thing I ask is you don't make load next item public:) Reason being, there is a very easy way to bypass failed loads with setting the second argument to true;</p>
<p><code lang="actionscript"><br />
var _oLoader:QueueLoader = new QueueLoader(true, addedDefinitions);<br />
</code></p>
<p>But feel free to use it however you want:)  Might be a few days before I can add these updates</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse</title>
		<link>http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/comment-page-1/#comment-534</link>
		<dc:creator>Jesse</dc:creator>
		<pubDate>Tue, 30 Oct 2007 22:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/#comment-534</guid>
		<description>THANKS! That was a very quick reply and I&#039;m surprised to have inspired a new post. BTW - QueueLoader rocks!

As far as loading XML and CSS first, I agree and do the same, but... I hate having to divide the steps for a total progress. That is the beauty of QueueLoader. Regardless of a site&#039;s structure, XML and CSS still feel like very good candidates for QueueLoader items.

I went ahead and tried to see how hard it might be to add XML, and it was pretty straight forward. 

The only hitch I ran into was if the xml was mistyped the queue would just stop loading. That leads me into my next suggestion which would be a backup plan for failed loads. 

I switch a private method to public and bypassed the issue with:

In queueloader.fla&#124;onItemError() added:
_oLoader.loadNextItem(); 

Then I tried adding more images than were available. Increasing the number from 7 to 12 reported the Queue Progress as 62% when complete. I can see a scenario where if loading a gallery of images, and if one fails, I don&#039;t want the user to know. 

It might be nice get an option to output % of the total loaded vs. % of successful loads.

Anyway, here is some quick code I added to include XML;



In queueloader.fla&#124;loadImages() added:

_oLoader.addItem( prefix(&quot;&quot;) + &quot;flashassets/xml/site.xml&quot;, new XML(), {title:&quot;XML!!&quot; });



In QueueLoader.as&#124;loadNextItem() added:

case FILE_XML:
trace(&quot;External XML&quot;);
_URLLoader = new URLLoader();
_URLLoader.addEventListener(Event.COMPLETE, completeHandler);
_URLLoader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_URLLoader.addEventListener(ProgressEvent.PROGRESS, progressHandler);
_URLLoader.load(request);
break;



In QueueLoader.as&#124;completeHandler() added:

if ( _currType == FILE_XML )
{
currItem.targ = new XML(event.target.data);
}
else if(_currType != FILE_AUDIO)
{
}



In queueloader.fla&#124;onItemInit() added:

if ( event.filetype == QueueLoader.FILE_XML ) 
{
	var xml = event.targ;
	trace( &quot;xml: \n&quot; + xml )
}



In queueloader.fla&#124;onItemError() added:
_oLoader.loadNextItem();</description>
		<content:encoded><![CDATA[<p>THANKS! That was a very quick reply and I'm surprised to have inspired a new post. BTW &#8211; QueueLoader rocks!</p>
<p>As far as loading XML and CSS first, I agree and do the same, but&#8230; I hate having to divide the steps for a total progress. That is the beauty of QueueLoader. Regardless of a site's structure, XML and CSS still feel like very good candidates for QueueLoader items.</p>
<p>I went ahead and tried to see how hard it might be to add XML, and it was pretty straight forward. </p>
<p>The only hitch I ran into was if the xml was mistyped the queue would just stop loading. That leads me into my next suggestion which would be a backup plan for failed loads. </p>
<p>I switch a private method to public and bypassed the issue with:</p>
<p>In queueloader.fla|onItemError() added:<br />
_oLoader.loadNextItem(); </p>
<p>Then I tried adding more images than were available. Increasing the number from 7 to 12 reported the Queue Progress as 62% when complete. I can see a scenario where if loading a gallery of images, and if one fails, I don't want the user to know. </p>
<p>It might be nice get an option to output % of the total loaded vs. % of successful loads.</p>
<p>Anyway, here is some quick code I added to include XML;</p>
<p>In queueloader.fla|loadImages() added:</p>
<p>_oLoader.addItem( prefix("") + "flashassets/xml/site.xml", new XML(), {title:"XML!!" });</p>
<p>In QueueLoader.as|loadNextItem() added:</p>
<p>case FILE_XML:<br />
trace("External XML");<br />
_URLLoader = new URLLoader();<br />
_URLLoader.addEventListener(Event.COMPLETE, completeHandler);<br />
_URLLoader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);<br />
_URLLoader.addEventListener(ProgressEvent.PROGRESS, progressHandler);<br />
_URLLoader.load(request);<br />
break;</p>
<p>In QueueLoader.as|completeHandler() added:</p>
<p>if ( _currType == FILE_XML )<br />
{<br />
currItem.targ = new XML(event.target.data);<br />
}<br />
else if(_currType != FILE_AUDIO)<br />
{<br />
}</p>
<p>In queueloader.fla|onItemInit() added:</p>
<p>if ( event.filetype == QueueLoader.FILE_XML )<br />
{<br />
	var xml = event.targ;<br />
	trace( "xml: \n" + xml )<br />
}</p>
<p>In queueloader.fla|onItemError() added:<br />
_oLoader.loadNextItem();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: djdonovan</title>
		<link>http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/comment-page-1/#comment-531</link>
		<dc:creator>djdonovan</dc:creator>
		<pubDate>Tue, 30 Oct 2007 20:59:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/#comment-531</guid>
		<description>That&#039;s a great idea Jesse, something I will definitely look into adding. However, I would say 99% of my workflow requires that I load an XML first, with the path to the CSS in the XML file., then load the CSS, then I run the QueueLoader as the items I need to load using QueueLoader are in the XML file. Because of that, I guess I never thought to include those file types:)

I can very easily add it in there, but if you wanted to store assets in an XML to be loaded with QueueLoader you would need to run a seperate QueueLoader (with the way it&#039;s set up now), which might add extra over head when you can use a simple XML loader.

I actually made a post with the source for these files &lt;a href=&quot;http://blog.hydrotik.com/2007/10/30/as3-xmlloader-cssloader/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.

Thanks! :)</description>
		<content:encoded><![CDATA[<p>That's a great idea Jesse, something I will definitely look into adding. However, I would say 99% of my workflow requires that I load an XML first, with the path to the CSS in the XML file., then load the CSS, then I run the QueueLoader as the items I need to load using QueueLoader are in the XML file. Because of that, I guess I never thought to include those file types:)</p>
<p>I can very easily add it in there, but if you wanted to store assets in an XML to be loaded with QueueLoader you would need to run a seperate QueueLoader (with the way it's set up now), which might add extra over head when you can use a simple XML loader.</p>
<p>I actually made a post with the source for these files <a href="http://blog.hydrotik.com/2007/10/30/as3-xmlloader-cssloader/" rel="nofollow">here</a>.</p>
<p>Thanks! <img src='http://blog.hydrotik.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse</title>
		<link>http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/comment-page-1/#comment-528</link>
		<dc:creator>Jesse</dc:creator>
		<pubDate>Tue, 30 Oct 2007 19:38:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/#comment-528</guid>
		<description>What about XML and CSS loading? How hard would that be to add?</description>
		<content:encoded><![CDATA[<p>What about XML and CSS loading? How hard would that be to add?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: djdonovan</title>
		<link>http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/comment-page-1/#comment-522</link>
		<dc:creator>djdonovan</dc:creator>
		<pubDate>Tue, 30 Oct 2007 13:16:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/#comment-522</guid>
		<description>Thanks man! Yes let me know how you make out with it.

And I promise next on my list is a posting on GO :)

D</description>
		<content:encoded><![CDATA[<p>Thanks man! Yes let me know how you make out with it.</p>
<p>And I promise next on my list is a posting on GO <img src='http://blog.hydrotik.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mosesoak</title>
		<link>http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/comment-page-1/#comment-519</link>
		<dc:creator>mosesoak</dc:creator>
		<pubDate>Tue, 30 Oct 2007 06:19:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/#comment-519</guid>
		<description>Hey D this is sweet stuff... you&#039;re really ripping up the AS3, nice work. I&#039;m going to dl these and check &#039;em out soon, it all looks supremely useful!

- m</description>
		<content:encoded><![CDATA[<p>Hey D this is sweet stuff&#8230; you're really ripping up the AS3, nice work. I'm going to dl these and check 'em out soon, it all looks supremely useful!</p>
<p>- m</p>
]]></content:encoded>
	</item>
</channel>
</rss>

