<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>hydrotik &#124; flash development &#124; actionscript &#124; creative &#187; Source Code</title>
	<atom:link href="http://blog.hydrotik.com/category/source-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hydrotik.com</link>
	<description>actionscript and creative playground of Donovan Adams</description>
	<lastBuildDate>Tue, 04 May 2010 15:24:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>iPhone and iPad + Flash 10 and CS5 &#8211; Solutions?</title>
		<link>http://blog.hydrotik.com/2010/04/29/iphone-and-ipad-flash-10-and-cs5-solutions/</link>
		<comments>http://blog.hydrotik.com/2010/04/29/iphone-and-ipad-flash-10-and-cs5-solutions/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 16:57:20 +0000</pubDate>
		<dc:creator>djdonovan</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Source Code]]></category>

		<guid isPermaLink="false">http://blog.hydrotik.com/?p=435</guid>
		<description><![CDATA[UPDATE: Reader Hector found a couple of interesting videos showing some benchmark testing. One of which I found quite interesting.

And also check out the Adobe section of optimizing for mobile content. Useful information for any type of development. 
UPDATE 2: Apple may change iPhone SDK to avoid legal ramifications.

Original Thoughts:
There's been a lot of buzz [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE:</strong> Reader Hector found a couple of interesting videos showing some benchmark testing. One of which I found quite interesting.</p>
<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/DUWo19BcC7s&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/DUWo19BcC7s&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></p>
<p><a href="http://help.adobe.com/en_US/as3/mobile/index.html" target="_blank">And also check out the Adobe section of optimizing for mobile content</a>. Useful information for any type of development. </p>
<p><strong>UPDATE 2:</strong> <a href="http://www.electronista.com/articles/10/05/03/apple.could.dodge.ftc.complaints.with.sdk.change/" target="_blank">Apple may change iPhone SDK to avoid legal ramifications.</a></p>
<hr />
<p><strong>Original Thoughts:</strong></p>
<p>There's been a lot of buzz surrounding Apple's stance on the exclusion of Flash on the iPhone and now the iPad. For many of us designers and developers, the evolution of Apple and Adobe have been a match made in heaven. But times have changed&#8230;.</p>
<p><strong> Breaking Down Apple's Logic</strong><br />
When the average person thinks of Flash, banners and advertisements are the first things that come to mind, followed by Youtube and other video streaming applications. So it's safe to say that the public perception of Flash first starts off with a limited viewpoint before it gradually works its way to thinking it as a well designed and award winning creative technique.<br />
Which leads me to believe that Apple's reason for excluding Flash on it's mobile platform, is to a certain extent (dare I say it) a logical choice. *gasps* </p>
<p><strong>Adobefication</strong><br />
To fully understand the logic behind Apple's decision, we need to look at Flash and its performance issues. This has been the foundation for a number of arguments supporting the exclusion of Flash. The three major strikes against Flash include:<br />
1. Its proprietary standard.<br />
2. Its process intensiveness (especially on Macs)<br />
3. Its lack of maturity (as a fully functioning non-lite platform) within the Mobile device market. </p>
<p>To be fair, we need to also look at the performance of the developer.  Adobe's Flash engineers certainly aren't blameless, but the developer is really the first step in the chain of making something work and work well. Flash has been around for a while now and with age, comes maturity. Over the course Flash's progression, Macromedia and Adobe have steered it in the right direction. However Flash still has a long way to go and is ready for a prototype shift. Given Steve Jobs' recent comments, I think it's time for Adobe to put the cards on the table and call Apple's bluff. </p>
<p><strong>Making a Mends</strong><br />
My solutions for Abobe (I hope you're out there listening) is to first create a robust and well designed interface system for debugging applications that is easily accessible and dependable to all levels of developer. Listening for the fan firing up is no way to determine that you've got run away processes and less then ideal code. Adobe also needs to enable adequate staging environments so that debugging and testing can be done within an applications ultimate environment. There are a number of tools and utilities to debug and test, but nothing that fully checks the performance of an application and gives the developer clear data on where bottlenecks are and what can be done to avoid them. In addition to that, Adobe should consider making the SWF format an open standard. Adobe's purchase of Macromedia was largely in part to take over the ubiquity of Flash on the web, so relinquishing that control would be a very progressive business move but in the long run pay off well for them. </p>
<p><strong>HTML5 standing by</strong><br />
Ahhhh HTML 5&#8230; Why did you get dragged into this mess? Well the quick answer is that a certain someone has poised HTML5 to be the "Flash Killer". It's suicide to say "never" in the web development world, so I'll simply say incredibly unlikely that HTML5 would ever fully replace Flash. In fact, when this phase is over, I believe Flash and HTML5 will be good friends. HTML5 is in NO position at this point to be compared to Flash. </p>
<p>Here's why I'm confident in my argument:</p>
<ul>
<li>HTML5 hasn't been fully established yet and most importantly it hasn't come even close to the level of development maturity of Flash.</li>
<li>HTML5 is a framework and a structured format (which has been pointed out in other discussions). It's method of development and implementation is totally different the Flash. Compilation of an application versus runtime execution of code.</li>
<li>The development tools for creating applications with Flash have had a long time to evolve. Project management and code management, OOP based utilities and frameworks, etc.</li>
<li>From a business perspective, why would a client want to pay for a developer to build an application from the ground up that rivals the best of the best with Flash?</li>
<li>IF, you were able to take the time and build a fully functional experience with all the MVC, physics, and layered video goodness of a top level Flash site with HTML5, if it's developed poorly, you are going to experience the same issues that a Flash site would. And who knows, maybe it would be even worse?</li>
<li>Code protection and copyright enforcement of development. (Something Flash could do better as well)</li>
</ul>
<p>With that being said, I look at this as Oranges and Cherry Trees. Flash Developers should in now way take the defense by bashing HTML5. It's great and certainly has it's place in the developers toolbox. I just believe that it has become a scape goat in what is largely a school yard fight.</p>
<p><strong>Back to Apple&#8230;</strong><br />
One side of my family has grown up with Apple, while the other has gown up with Microsoft and IBM compatible computers. The Apple side consists of an Architectural Scale Model Maker and Architect, a Wardrobe Stylist, an Audio Engineer, an industrial designer, and myself a Flash Developer/Web Designer. On the other side, I have a Computer Programer, and a Certified Public Accountant. Why am I sharing this?  Maybe for full disclosure, but also to emphasize that I have always enjoyed their products and approach to using creative technology. Yet, I'm quick to point out when Apple isn't being pragmatic and would never consider myself a fanboy.</p>
<p>I was passionate about Apple products until having owned an iPhone for 2 years. Now seeing the release of the iPad, I've grown even more disenchanted with Apple. And no, it's not just because they don't have Flash on them. The exclusion of Flash on the iPhone is part of a bigger issue. It's the exclusion of Applications in general. I realize that control over Apps and the exclusion of third party layers helps Apples quality control, but at the same time the end user also suffers.  Apple also criticizes mobile performance that use  Flash and there is some truth to that, but that could be easily addressed with some help from Adobe. </p>
<p>I'm starting to feel like Apple has taken on a totalitarian dictatorship on what can be put in the device and what can't. I don't believe Apple should dictate what I do with my phone. How would the world react if they did this with our computers? It seems as though Apple has lost site of its loyal customers that have been around since the earlier days. Ask anyone that uses Macs in their day to day endeavors and see if they feel like Apple is developing and marketing new products that are geared to them. In my opinion they aren't. The 3Gs has features the first release of the iPhone should have had. And the iPad is sort of silly in my opinion. The iPhone and the iPad are for non Apple users, or is at least focused on attracting non Apple users. As far as business goes, this makes perfect sense. You can't grow a business by just catering to the people that already own the products, but at the same time you can't ignore the ones that do either. It would be nice if some of the focus was shared with products that are geared towards the people that helped them get to where they are. Don't forget about us tech savvy people that do enjoy your products and push them to the limit. It's gotten to the point where the jail-broken phone has become the developer edition. Apple has built a box outside of the box. Because of this, I'm saying good bye to my iPhone. I've downloaded the Android SDK and I'm impatiently waiting for the Sony Ericsson Xperia X10 to be released in the U.S. As a Flash developer, the Android environment makes sense with respect to the languages and the grass roots approach to development.</p>
<p>The silver lining in this whole situation is that both Apple and Abobe stand to better themselves. Apple has put some real issues and concerns on the table for Adobe yet I also believe that Jobs is being a bit stubborn and egotistical. Apple is flouting themselves as being the holy grail of how to funnel Applications to the end user, yet their hardware is two iterations behind what it should be. </p>
<p>And I'm a curious person. I don't see myself developing Flash apps forever, or at least exclusively. And to use Jobs' words, I have no problems leaving the past behind. I'm looking forward to learning more about how to develop for Android and the freedom of an Open Source environment. </p>
<p>I think of the Flash issue as the final straw, but I'm happy to have a device that will run Flash 10.1. If it works or not remains to be seen, but I don't need anyone telling me it doesn't work without experiencing for myself.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hydrotik.com/2010/04/29/iphone-and-ipad-flash-10-and-cs5-solutions/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>HydroTween is now OpenTween and on Github!</title>
		<link>http://blog.hydrotik.com/2009/12/01/hydrotween-is-now-opentween-and-on-github/</link>
		<comments>http://blog.hydrotik.com/2009/12/01/hydrotween-is-now-opentween-and-on-github/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 19:23:56 +0000</pubDate>
		<dc:creator>djdonovan</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[GO]]></category>
		<category><![CDATA[OpenTween]]></category>
		<category><![CDATA[Source Code]]></category>

		<guid isPermaLink="false">http://blog.hydrotik.com/?p=399</guid>
		<description><![CDATA[
I've decided to take a step back in the hopes of taking two steps forward. HydroTween is now deprecated for the most part as I've stripped it down and done some rebuilding in the form of OpenTween. The hope is by having the project on gitgub, the project will attract some extra help and involvement. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://github.com/hydrotik/OpenTween" target="_blank"><img src="/wp-content/logov3.png" alt="GitHub" /></a></p>
<p>I've decided to take a step back in the hopes of taking two steps forward. HydroTween is now deprecated for the most part as I've stripped it down and done some rebuilding in the form of <a href="http://github.com/hydrotik/OpenTween" target="_blank">OpenTween</a>. The hope is by having the project on gitgub, the project will attract some extra help and involvement. Some other reasons for rebuilding are the modularity of the properties and the goal of having easy to add/configurable properties and property groups. Performance inprovements are another important reason. Also the fact that the code is using an MIT license means that it can be added to whatever project you want as long as the license boiler plate is intact. It's even set up so you can create your own "private label" tweening engine for your development projects. I.E. I have MyOwnTween which extends OpenTween and allows you to reorder your params, settings, etc.</p>
<p> I have yet to implement the image process tweening properties or give this a thorough testing so it's still in the infant stages, but I'm excited about where this is going and giving the project a fresh restart. Check out Git if you haven't already and give me a shout if you want to get involved!</p>
<p><a href="http://github.com/hydrotik/OpenTween" target="_blank">OpenTween on Github</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hydrotik.com/2009/12/01/hydrotween-is-now-opentween-and-on-github/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>QueueLoader is now on Github!</title>
		<link>http://blog.hydrotik.com/2009/11/25/queueloader-is-now-on-github/</link>
		<comments>http://blog.hydrotik.com/2009/11/25/queueloader-is-now-on-github/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 17:07:42 +0000</pubDate>
		<dc:creator>djdonovan</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[QueueLoader]]></category>
		<category><![CDATA[Source Code]]></category>

		<guid isPermaLink="false">http://blog.hydrotik.com/?p=391</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://wiki.github.com/hydrotik/QueueLoader" target="_blank"<img src="/wp-content/logov3.png" alt="GitHub" /></a></p>
<p>Github is the social networking version of a version control system. The learning curve with Git can be a little tricky at first, but after installing and learning the basic commands you will be up and running. The beauty of Git lies in the way it collects and organizes changes and data. Merging from multiples sources is reliable and makes for more contributions. This will hopefully encourage more people to get involved with Open Source projects including QueueLoader! I will still be providing a standalone link either here on the site or on the deprecated Google Page, but for wiki usage and change info definitely go to Github.</p>
<p><a href="http://wiki.github.com/hydrotik/QueueLoader" target="_blank">QueueLoader on Github</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hydrotik.com/2009/11/25/queueloader-is-now-on-github/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>QueueLoader 3.1.8</title>
		<link>http://blog.hydrotik.com/2009/11/23/queueloader-3-1-8/</link>
		<comments>http://blog.hydrotik.com/2009/11/23/queueloader-3-1-8/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 02:34:03 +0000</pubDate>
		<dc:creator>djdonovan</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[QueueLoader]]></category>
		<category><![CDATA[Source Code]]></category>

		<guid isPermaLink="false">http://blog.hydrotik.com/?p=385</guid>
		<description><![CDATA[Having some problems with the vcs on Google, but the featured link is current. I'm in the process of moving QueueLoader over to github to ultimately make life easier. 3.1.8 addressed an issue with throwing an error when running the queue with no items in it as well as the QUEUE_COMPLETE event firing if you [...]]]></description>
			<content:encoded><![CDATA[<p>Having some problems with the vcs on Google, but the featured link is current. I'm in the process of moving QueueLoader over to github to ultimately make life easier. 3.1.8 addressed an issue with throwing an error when running the queue with no items in it as well as the QUEUE_COMPLETE event firing if you run a queue with all items generating errors and the queue's ignoreErrors argument set to true.</p>
<hr />
<a href="http://queueloader-as3.googlecode.com/files/QueueLoader_rev_3_1_8_src.zip">Download QueueLoader rev 3.1.8 Source Only</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hydrotik.com/2009/11/23/queueloader-3-1-8/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fluorescent Ballast and Neon Flicker + Across The Hall Movie</title>
		<link>http://blog.hydrotik.com/2009/11/23/fluorescent-ballast-and-neon-flicker-across-the-hall-movie/</link>
		<comments>http://blog.hydrotik.com/2009/11/23/fluorescent-ballast-and-neon-flicker-across-the-hall-movie/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 01:03:35 +0000</pubDate>
		<dc:creator>djdonovan</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Source Code]]></category>

		<guid isPermaLink="false">http://blog.hydrotik.com/?p=376</guid>
		<description><![CDATA[
Just completed a rush project for the film Across The Hall. Being that this is a noir styled film, I came up with a simple class that emulates the effect of sign letters turning on. Could work for Fluorescent lights as well as other stuff. Easiest way to use it is to link the MovieClip [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.acrossthehallmovie.com" target="_blank"><img src="/wp-content/ath_site.jpg" alt="Across The Hall Movie" /></a><br />
Just completed a rush project for the film <a href="http://www.acrossthehallmovie.com" target="_blank">Across The Hall</a>. Being that this is a noir styled film, I came up with a simple class that emulates the effect of sign letters turning on. Could work for Fluorescent lights as well as other stuff. Easiest way to use it is to link the MovieClip in your library you intend to export and point the base class path to FluorescentBallastFlicker.<br />
<img src="/wp-content/fballastLink.jpg" /><br />
Then in your code, instantiate and attach the MovieClip to your DisplayObject and the MovieClip will automatically set its alpha to 0 and will be ready to turn on.</p>
<p>The turnOn() method takes the arguments; seconds of turn on time, seconds of delay, and an optional callback function when the effect has finished.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">_hSign.<span style="color: #006600;">turnOn</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;
_oSign.<span style="color: #006600;">turnOn</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span>, .5<span style="color: #66cc66;">&#41;</span>;
_tSign.<span style="color: #006600;">turnOn</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;
_eSign.<span style="color: #006600;">turnOn</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">1.5</span><span style="color: #66cc66;">&#41;</span>;
_lSign.<span style="color: #006600;">turnOn</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>;
_riverview.<span style="color: #006600;">turnOn</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">2.5</span>, startSite<span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>Once the item is on, you can use the badBallast() method to emulate a loose connection. The lower the number the more frequent the flickering.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">_hSign.<span style="color: #006600;">badBallast</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<hr />
<a href="/wp-content/FluorescentBallastFlicker.zip">Download Fluorescent Ballast and Neon Flicker Class Source Code!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hydrotik.com/2009/11/23/fluorescent-ballast-and-neon-flicker-across-the-hall-movie/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>QueueLoader 3.1.7</title>
		<link>http://blog.hydrotik.com/2009/10/06/queueloader-317/</link>
		<comments>http://blog.hydrotik.com/2009/10/06/queueloader-317/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 03:30:14 +0000</pubDate>
		<dc:creator>djdonovan</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[QueueLoader]]></category>
		<category><![CDATA[Source Code]]></category>

		<guid isPermaLink="false">http://blog.hydrotik.com/?p=325</guid>
		<description><![CDATA[Announcing a long overdue update of QueueLoader last week. Fixes include finally addressing the error handling of a missing item that is first loaded. Also some optimization of the utility with interfaces.
Click here to download
The google group has been growing and hopefully it has been helpful. I set up an approval process for membership to [...]]]></description>
			<content:encoded><![CDATA[<p>Announcing a long overdue update of QueueLoader last week. Fixes include finally addressing the error handling of a missing item that is first loaded. Also some optimization of the utility with interfaces.<br />
<a href="http://code.google.com/p/queueloader-as3/downloads/list" target="_blank">Click here to download</a></p>
<p>The google group has been growing and hopefully it has been helpful. I set up an approval process for membership to reduce the amount of spam. I typically approve members within 12 hours.<br />
<a href="http://groups.google.com/group/queueloader-users" target="_blank">Click here to join</a></p>
<p>Any additional suggestions or issues are welcome. Also feel free to click on our sponsors!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hydrotik.com/2009/10/06/queueloader-317/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QueueLoader Version 3.1 &#8211; Major Update + Usage</title>
		<link>http://blog.hydrotik.com/2008/10/29/queueloader-rev-31-major-update-usage/</link>
		<comments>http://blog.hydrotik.com/2008/10/29/queueloader-rev-31-major-update-usage/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 01:14:35 +0000</pubDate>
		<dc:creator>djdonovan</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[QueueLoader]]></category>
		<category><![CDATA[Source Code]]></category>

		<guid isPermaLink="false">http://blog.hydrotik.com/?p=143</guid>
		<description><![CDATA[UPDATE: 3.1.3: Fixed width and height prop in Image and SWF items. Added autoPlay to FLV. event.content returns the NetStream object and using event.content.seek(0) and event.content.togglePlay() will start the stream if the item is NOT set to autoPlay (false is the default).
UPDATE: 3.1.2: Changed path prop to URLRequest.
UPDATE: 3.1.1: Fixed an error thrown in Flex [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE: 3.1.3:</strong> Fixed width and height prop in Image and SWF items. Added autoPlay to FLV. event.content returns the NetStream object and using event.content.seek(0) and event.content.togglePlay() will start the stream if the item is NOT set to autoPlay (false is the default).</p>
<p><strong>UPDATE: 3.1.2:</strong> Changed path prop to URLRequest.</p>
<p><strong>UPDATE: 3.1.1:</strong> Fixed an error thrown in Flex 4 SDK in FLVItem.as &#8211; Also Added version numbers to all Files. <a href="http://code.google.com/p/queueloader-as3/" target="_blank">Update is on the SVN.</a></p>
<p><a name="top"></a>I'm excited to announce that QueueLoader has undergone a major revision. I finally had a chance to rewrite the class and make it more "Open Source" friendly and scalable. All loadable items have been broken out into separate classes implementing an ILoadable interface as well as extending an abstract loadable item. This will also make it easier for adding special features to loadable items, as well as promote the evolution of the package. The package path has been changed, but most of the API and general ease of use has remained the same. The most significant change is how to access loading items via the event callbacks. They have been broken out to container, targ, and content. They are explained further below in the "Useful Tips" section. I'm going to do my best to include as many frequently requested examples, but first let's go over the current features of this revision:</p>
<p><img src="http://blog.hydrotik.com/wp-content/ql_logo.jpg" alt="QueueLoader Logo" /></p>
<p><strong>Source Downloads:</strong><br />
<a href="/wp-content/queueLoader_3-1-3.zip">QueueLoader 3.1.3 Example Files + Assets + Source + Documentation :: 28.44 MB</a><br />
<a href="/wp-content/queueLoader_3-1-3_src-docs.zip">QueueLoader 3.1.3 Source + Documentation :: 1.16 MB</a></p>
<p><strong>Note:</strong> Both of the downloads above include the dependent libraries Popforge (.wav) and Nochump (.zip). I am not including these libraries on the SVN. Be sure to check for updates above to changes in the core QueueLoader source. If you wish to run QueueLoader without the additional libraries; In ItemList.as comment out line 45 and 46 where the zip and wav classes are being added to the loadable item list. Also comment out lines 82 and 84 in QueueLoader where the zip and wav filetype constant id numbers are defined. Finally be sure to remove ZIPItem.as and PCMSoundItem.as from the "items" package. If you wish to add your own custom item, you would simply follow the instructions in reverse but adding a unique number to the file type constant id.</p>
<p><strong>Also Note:</strong> Just to clear up an possible confusion, this is a version change and not another revision. The URL to this page might be confusing as it looks like rev31 when it's 3.1.</p>
<p><strong>Mailing List:</strong><br />
<a href="http://groups.google.com/group/queueloader-users" target="_blank">QueueLoader Google Group</a></p>
<p><strong>General Features:</strong></p>
<ul>
<li><a href="#item">Individual item monitoring</a></li>
<li><a href="#overall">Overall queue monitoring</a></li>
<li><a href="#bandwidth">Bandwidth monitoring</a></li>
<li>Standard event based handling</li>
<li>Open source friendly structure</li>
<li><a href="#drawframes">Drawing of frames to an Array of BitmapData objects</a></li>
<li>Automatic detection of file types</li>
<li><a href="#mime">Manual specifying of file types</a></li>
<li><a href="#ignoreerrors">Skipping of failed loading items</a></li>
<li><a href="#domain">Application Domain access of loaded swf class references</a></li>
<li><a href="#dispose">Disposal of a queue's loaded items</a></li>
<li><a href="#qlmanager">Disposal of all queues added to the QLManager</a></li>
<li><a href="#onthefly">Adding items to the queue on the fly</a></li>
<li><a href="#xml">Access to a loaded item via getItemAt() or getItemByTitle()</a></li>
<li><a href="#sorting">Sorting of loading queue</a></li>
<li><a href="#resume">Stopping and resuming of a queue</a></li>
<li><a href="#smoothcache">Cache Killing</a></li>
<li><a href="#smoothcache">Bitmap Smoothing</a></li>
<li><a href="#mime">Passing URL Variables</a></li>
<li><a href="#loadxml">Passing XML data for setting up a QueueLoader using the loadXML(); method</a></li>
<li><a href="#timeline">Easy Access to SWF Timeline and Scope</a></li>
</ul>
<p><strong>Supported File Types:</strong></p>
<ul>
<li><a href="#item">Image loading &#8211; jpg/gif/png</a></li>
<li><a href="#drawframes">SWF loading</a></li>
<li><a href="#xml">XML loading</a></li>
<li><a href="#css">CSS loading</a></li>
<li><a href="#mp3">MP3 loading</a></li>
<li><a href="#wav">PCM WAV loading &#8211; Using Popforge Library</a></li>
<li><a href="#zip">ZIP loading &#8211; Using Nochump</a></li>
<li>FLV loading</li>
<li><a href="#wav">Generic loading &#8211; DAE/PHP/TXT/HTML</a></li>
</ul>
</ul>
<p><strong>QLManager &#8211; Global QueueLoader Management:</strong></p>
<ul>
<li><a href="#qlmanager">If I.D. is passed into QueueLoader Instance it is added to the QLManger for access</a></li>
<li><a href="#qlmanager">Global disposal of all QueueLoader's added to QLManager</a></li>
<li><a href="#qlmanager">Access to a Queue's targets</a></li>
</ul>
<p><strong>Useful Tips and Other Info:</strong></p>
<ul>
<li>If you are loading a ton of images, you might consider putting them all on separate frames of a SWF and using the draw frames feature. If the image collection gets updated, putting them in a Zipped folder might be easier. This will alleviate the opening and closing of HTTP connections.</li>
<li>event.container &#8211; access to the container you specify in the addItem() method.</li>
<li>event.targ &#8211; access to the Loader of an Item in the case of an Image or SWF. This is what is added to the container DisplayObject if it has been added to the addItem() arguments.</li>
<li>event.content &#8211; access to the loaded item's data or content. In the case of an Image, it would be the Bitmap. In the case of a SWF, it would be the SWF's timeline. In the case of CSS, it would be the StyleSheet. In the case of audio, it would be the Sound. Etc&#8230;</li>
<li>Keep in mind QueueLoader is a utility, and not a component. Many of the more complex usage scenarios can very easily be built on top of QueueLoader. Using QueueLoader does require some basic knowledge of Actionscript 3.0, listeners, events, as well as scope. It's also much easier to extend the functionality if you are looking to modify the features of an existing loadable item. Simply replace a file type constant and add the Item to the ItemList with a regex for the filetype. Just make sure the file suffix doesn't conflict with another suffix.</li>
<li>QueueLoaderLite has been included in the package and will undergo a rewrite soon as well making the distinction between the two clearer.</li>
</ul>
<p><a href="/wp-content/qldocumentation/html/index.html" target="_blank"><strong>View the Class Documentation Files</strong></a></p>
<hr />
<h3>Examples</h3>
<hr />
<p><strong><a name="overall">Overall Monitoring/Basic Example<br />
</a></strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// Most Basic Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> img:Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
img.<span style="color: #0066CC;">name</span> = <span style="color: #ff0000;">&quot;image_1&quot;</span>;
img.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">20</span>;
img.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">20</span>;
img.<span style="color: #006600;">scaleX</span> = img.<span style="color: #006600;">scaleY</span> = .075;
addChild<span style="color: #66cc66;">&#40;</span>img<span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/images/slideshow/1.jpg&quot;</span>, img<span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="item"><br />
Multiple Items and Event Monitoring Example<br />
</a></strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// Multiple Items and Event Monitoring Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> imageContainer:Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
addChild<span style="color: #66cc66;">&#40;</span>imageContainer<span style="color: #66cc66;">&#41;</span>;
imageContainer.<span style="color: #006600;">x</span> = imageContainer.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">25</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> startX:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>;
<span style="color: #000000; font-weight: bold;">var</span> startY:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>;
&nbsp;
<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> <span style="color: #cc66cc;">3</span>; i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> img:Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	img.<span style="color: #0066CC;">name</span> = <span style="color: #ff0000;">&quot;image_&quot;</span>+i;
	img.<span style="color: #006600;">x</span> = startX;
	img.<span style="color: #006600;">y</span> = startY;
	img.<span style="color: #006600;">scaleX</span> = img.<span style="color: #006600;">scaleY</span> = .075;
	imageContainer.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>img<span style="color: #66cc66;">&#41;</span>;
	_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/images/slideshow/&quot;</span>+<span style="color: #66cc66;">&#40;</span>i+<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #ff0000;">&quot;.jpg&quot;</span>, img, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;Image &quot;</span>+i<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>startX <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">250</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		startX = startX + <span style="color: #cc66cc;">50</span>;
		startY = startY + <span style="color: #cc66cc;">100</span>;
	<span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span>
		startX = startX + <span style="color: #cc66cc;">150</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_START</span>, onQueueStart, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_START</span>, onItemStart, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_PROGRESS</span>, onItemProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_COMPLETE</span>, onItemComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_ERROR</span>, onItemError,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">//Listener functions</span>
<span style="color: #000000; font-weight: bold;">function</span> onQueueStart<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemStart<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt; &quot;</span>+event.<span style="color: #0066CC;">type</span>, <span style="color: #ff0000;">&quot;item title: &quot;</span>+event.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onItemProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt; &quot;</span>+event.<span style="color: #0066CC;">type</span>, <span style="color: #ff0000;">&quot;item title: &quot;</span>+event.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemError<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&gt;&gt;&quot;</span>+event.<span style="color: #0066CC;">message</span>+<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="smoothcache"><br />
Bitmap Smoothing and Cache Killing Example<br />
</a></strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// Bitmap Smoothing and Cache Killing Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> img:Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
img.<span style="color: #0066CC;">name</span> = <span style="color: #ff0000;">&quot;image_1&quot;</span>;
img.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">20</span>;
img.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">20</span>;
img.<span style="color: #006600;">scaleX</span> = img.<span style="color: #006600;">scaleY</span> = <span style="color: #cc66cc;">1.25</span>;
addChild<span style="color: #66cc66;">&#40;</span>img<span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/images/slideshow/1.jpg&quot;</span>, img, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;Image 1&quot;</span>, cacheKiller:<span style="color: #000000; font-weight: bold;">true</span>, <span style="color: #0066CC;">smoothing</span>:<span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="domain"><br />
Calling a SWF's Library Class References &#8211; Application Domain Example<br />
</a></strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// Calling a SWF's Library Class References - Application Domain Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> addedDefinitions:LoaderContext = <span style="color: #000000; font-weight: bold;">new</span> LoaderContext<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
addedDefinitions.<span style="color: #006600;">applicationDomain</span> = ApplicationDomain.<span style="color: #006600;">currentDomain</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">false</span>, addedDefinitions, <span style="color: #000000; font-weight: bold;">true</span>, <span style="color: #ff0000;">&quot;testQueue&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/swf/externalsounds.swf&quot;</span>, <span style="color: #0066CC;">this</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;SWF&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_START</span>, onQueueStart, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">//Listener functions</span>
<span style="color: #000000; font-weight: bold;">function</span> onQueueStart<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #000000; font-weight: bold;">var</span> loop:<span style="color: #0066CC;">Sound</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #66cc66;">&#40;</span>getDefinitionByName<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Loop1&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #000000; font-weight: bold;">var</span> soundChannel:SoundChannel = loop.<span style="color: #0066CC;">play</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">999</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="dispose"><br />
Queue Disposing<br />
</a></strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// Queue Disposing</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> img:Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
img.<span style="color: #0066CC;">name</span> = <span style="color: #ff0000;">&quot;image_1&quot;</span>;
img.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">20</span>;
img.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">20</span>;
img.<span style="color: #006600;">scaleX</span> = img.<span style="color: #006600;">scaleY</span> = .1;
addChild<span style="color: #66cc66;">&#40;</span>img<span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/images/slideshow/1.jpg&quot;</span>, img, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;Image 1&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
	setTimeout<span style="color: #66cc66;">&#40;</span>callDipose, <span style="color: #cc66cc;">3000</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> callDipose<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
	_oLoader.<span style="color: #006600;">dispose</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="mime"><br />
Manually Setting File Type/URL Variable Example<br />
</a></strong><br />
This will let you pass URL variables to a file that is to be loaded. Keep in mind that the example data.php file has no php code in it so that it will run locally. However on a php server you would have the code shown below in the data.php file. This will pass the url variable $user a value of yourname, which you should see as yourname.jpg in the XML output.</p>
<p><strong>PHP:</strong><br />
<code lang="php"><br />
<?php echo '<?xml version="1.0" encoding="iso-8859-1"?><br />
<test<br />
	css="test.css"<br />
	><br />
	<!--<br />
	Fonts:</p>
<p>	--></p>
<p>	<config><br />
		<audio src="flashassets/swf/externalsounds.swf" /><br />
	</config></p>
<p>	<images><br />
		<img src="flashassets/images/slideshow/' . $user . '.jpg" /><br />
		<img src="flashassets/images/slideshow/2.jpg" /><br />
		<img src="flashassets/images/slideshow/3.jpg" /><br />
	</images></p>
<p></test>'; ?>
</pre>
<p><a href="#top">Back To Top</a></p>
<p><strong>Actionscript:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// Manually Setting File Type/URL Variable Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> img:Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
img.<span style="color: #0066CC;">name</span> = <span style="color: #ff0000;">&quot;image_1&quot;</span>;
img.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">20</span>;
img.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">20</span>;
img.<span style="color: #006600;">scaleX</span> = img.<span style="color: #006600;">scaleY</span> = .1;
addChild<span style="color: #66cc66;">&#40;</span>img<span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../includes/admin/data.php?id=1&amp;user=yourname&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>,
		<span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;XML PHP&quot;</span>, mimeType:QueueLoader.<span style="color: #006600;">FILE_XML</span><span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_COMPLETE</span>, onItemComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt; &quot;</span>+event.<span style="color: #0066CC;">type</span>, <span style="color: #ff0000;">&quot;item title: &quot;</span>+event.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">title</span> == <span style="color: #ff0000;">&quot;XML PHP&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">var</span> output:<span style="color: #0066CC;">String</span> = <span style="color: #0066CC;">XML</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">targ</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">child</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;images&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">child</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;img&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #66cc66;">@</span>src;
		<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span>XML Node: &quot;</span>+output+<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="drawframes"><br />
Drawing a SWF's Frames to BitmapData Array Example<br />
</a></strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// Drawing a SWF's Frames to BitmapData Array Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/swf/externalimages.swf&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;SWF Images&quot;</span>, drawFrames:<span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_COMPLETE</span>, onItemComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt; &quot;</span>+event.<span style="color: #0066CC;">type</span>, <span style="color: #ff0000;">&quot;item title: &quot;</span>+event.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">title</span> == <span style="color: #ff0000;">&quot;SWF Images&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">var</span> startX:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>; <span style="color: #000000; font-weight: bold;">var</span> startY:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">65</span>;
&nbsp;
		<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>; i<span style="color: #66cc66;">&lt;</span>event.<span style="color: #006600;">bmArray</span>.<span style="color: #0066CC;">length</span>; i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">var</span> bm:Bitmap = <span style="color: #000000; font-weight: bold;">new</span> Bitmap<span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">bmArray</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>, <span style="color: #ff0000;">&quot;auto&quot;</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
			bm.<span style="color: #006600;">x</span> = startX;
			bm.<span style="color: #006600;">y</span> = startY;
			bm.<span style="color: #006600;">scaleX</span> = bm.<span style="color: #006600;">scaleY</span> = .75;
			addChild<span style="color: #66cc66;">&#40;</span>bm<span style="color: #66cc66;">&#41;</span>;
			startX = startX + <span style="color: #cc66cc;">85</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="ignoreerrors"><br />
Ignoring of Errors/Error Handling Example<br />
</a></strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// Ignoring of Errors/Error Handling Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//&lt;- true arg sets ignore errors</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> img:Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
img.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">20</span>;
img.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">20</span>;
img.<span style="color: #006600;">scaleX</span> = img.<span style="color: #006600;">scaleY</span> = .075;
addChild<span style="color: #66cc66;">&#40;</span>img<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> img2:Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
img2.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">120</span>;
img2.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">20</span>;
img2.<span style="color: #006600;">scaleX</span> = img2.<span style="color: #006600;">scaleY</span> = .075;
addChild<span style="color: #66cc66;">&#40;</span>img2<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> img3:Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
img3.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">220</span>;
img3.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">20</span>;
img3.<span style="color: #006600;">scaleX</span> = img3.<span style="color: #006600;">scaleY</span> = .075;
addChild<span style="color: #66cc66;">&#40;</span>img3<span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/images/slideshow/1.jpg&quot;</span>, img<span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/images/slideshow/12.jpg&quot;</span>, img2<span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/images/slideshow/3.jpg&quot;</span>, img3<span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_ERROR</span>, onItemError,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemError<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&gt;&gt;&quot;</span>+event.<span style="color: #0066CC;">message</span>+<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="resume"><br />
Stop and Resume Example<br />
</a></strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// Stop and Resume Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//&lt;- true arg sets ignore errors</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> img:Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
img.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">20</span>;
img.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">20</span>;
img.<span style="color: #006600;">scaleX</span> = img.<span style="color: #006600;">scaleY</span> = .075;
addChild<span style="color: #66cc66;">&#40;</span>img<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> img2:Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
img2.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">170</span>;
img2.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">20</span>;
img2.<span style="color: #006600;">scaleX</span> = img2.<span style="color: #006600;">scaleY</span> = .075;
addChild<span style="color: #66cc66;">&#40;</span>img2<span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/images/slideshow/1.jpg&quot;</span>, img, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;Image 1&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/images/slideshow/2.jpg&quot;</span>, img2, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;Image 2&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_COMPLETE</span>, onItemComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt; &quot;</span>+event.<span style="color: #0066CC;">type</span>, <span style="color: #ff0000;">&quot;item title: &quot;</span>+event.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">title</span> == <span style="color: #ff0000;">&quot;Image 1&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		_oLoader.<span style="color: #0066CC;">stop</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #808080; font-style: italic;">// Set a 4 second to pause and resume the load</span>
		setTimeout<span style="color: #66cc66;">&#40;</span>resumeLoad, <span style="color: #cc66cc;">4000</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> resumeLoad<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
	_oLoader.<span style="color: #006600;">resume</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="bandwidth"><br />
Bandwidth Detection Example<br />
</a></strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// Bandwidth Detection Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> imageContainer:Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
addChild<span style="color: #66cc66;">&#40;</span>imageContainer<span style="color: #66cc66;">&#41;</span>;
imageContainer.<span style="color: #006600;">x</span> = imageContainer.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">25</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> addedDefinitions:LoaderContext = <span style="color: #000000; font-weight: bold;">new</span> LoaderContext<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
addedDefinitions.<span style="color: #006600;">applicationDomain</span> = ApplicationDomain.<span style="color: #006600;">currentDomain</span>;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">false</span>, addedDefinitions, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> startX:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>;
<span style="color: #000000; font-weight: bold;">var</span> startY:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>;
&nbsp;
<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> <span style="color: #cc66cc;">3</span>; i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> img:Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	img.<span style="color: #0066CC;">name</span> = <span style="color: #ff0000;">&quot;image_&quot;</span>+i;
	img.<span style="color: #006600;">x</span> = startX;
	img.<span style="color: #006600;">y</span> = startY;
	img.<span style="color: #006600;">scaleX</span> = img.<span style="color: #006600;">scaleY</span> = .075;
	imageContainer.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>img<span style="color: #66cc66;">&#41;</span>;
	_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/images/slideshow/&quot;</span>+<span style="color: #66cc66;">&#40;</span>i+<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #ff0000;">&quot;.jpg&quot;</span>, img, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;Image &quot;</span>+i<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>startX <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">250</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		startX = startX + <span style="color: #cc66cc;">50</span>;
		startY = startY + <span style="color: #cc66cc;">100</span>;
	<span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span>
		startX = startX + <span style="color: #cc66cc;">150</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_COMPLETE</span>, onItemComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #0066CC;">bandwidth</span>+<span style="color: #ff0000;">&quot;KB/s&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt; &quot;</span>+event.<span style="color: #0066CC;">type</span>, <span style="color: #ff0000;">&quot;item title: &quot;</span>+event.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="css"><br />
CSS Example<br />
</a></strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// CSS Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../includes/admin/test.css&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;CSS&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_COMPLETE</span>, onItemComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt; &quot;</span>+event.<span style="color: #0066CC;">type</span>, <span style="color: #ff0000;">&quot;item title: &quot;</span>+event.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">fileType</span> == QueueLoader.<span style="color: #006600;">FILE_CSS</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span>CSS: &quot;</span>+event.<span style="color: #006600;">content</span>.<span style="color: #006600;">styleNames</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="xml">XML Loading/Get Item By Title Example</a></strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// XML Loading/Get Item By Title Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../includes/admin/test.xml&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;XML&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_COMPLETE</span>, onItemComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt; &quot;</span>+event.<span style="color: #0066CC;">type</span>, <span style="color: #ff0000;">&quot;item title: &quot;</span>+event.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">fileType</span> == QueueLoader.<span style="color: #006600;">FILE_XML</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span>XML: &quot;</span>+event.<span style="color: #006600;">content</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>XML Node:<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>+XMLList<span style="color: #66cc66;">&#40;</span>_oLoader.<span style="color: #006600;">getItemByTitle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;XML&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">content</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">item</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="sorting">Sorting Example</a></strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// Sorting Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/mp3/GetDown.mp3&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;MP3&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/swf/externalsounds.swf&quot;</span>, <span style="color: #0066CC;">this</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;SWF&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../includes/admin/test.xml&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;XML&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../includes/admin/data.php?id=1&amp;user=yourname&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>,
     <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;XML PHP&quot;</span>, mimeType:QueueLoader.<span style="color: #006600;">FILE_XML</span><span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/swf/externalimages.swf&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;SWF Images&quot;</span>, drawFrames:<span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../includes/admin/test.css&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;CSS&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_START</span>, onQueueStart, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_COMPLETE</span>, onItemComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueStart<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>_oLoader.<span style="color: #006600;">getQueuedItems</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt; &quot;</span>+event.<span style="color: #0066CC;">type</span>, <span style="color: #ff0000;">&quot;item title: &quot;</span>+event.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">title</span> == <span style="color: #ff0000;">&quot;MP3&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
                <span style="color: #808080; font-style: italic;">// This takes an array of two items (second arg)</span>
                <span style="color: #808080; font-style: italic;">// from 4th position (1st arg) and inserts them</span>
                <span style="color: #808080; font-style: italic;">// into the 2nd position (3rd arg)</span>
		_oLoader.<span style="color: #006600;">shuffle</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">4</span>, <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>_oLoader.<span style="color: #006600;">getLoadedItems</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="onthefly">Adding Items On-The-Fly Example</a></strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// Adding Items On-The-Fly Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/mp3/GetDown.mp3&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;MP3&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/swf/externalsounds.swf&quot;</span>, <span style="color: #0066CC;">this</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;SWF&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_START</span>, onQueueStart, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_COMPLETE</span>, onItemComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueStart<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>_oLoader.<span style="color: #006600;">getQueuedItems</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt; &quot;</span>+event.<span style="color: #0066CC;">type</span>, <span style="color: #ff0000;">&quot;item title: &quot;</span>+event.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">title</span> == <span style="color: #ff0000;">&quot;SWF&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../includes/admin/test.xml&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;XML&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
		_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/swf/externalimages.swf&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;SWF Images&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
		_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../includes/admin/test.css&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;CSS&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>_oLoader.<span style="color: #006600;">getLoadedItems</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="qlmanager">QLManager Example</a></strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// QLManager Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QLManager</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #000000; font-weight: bold;">true</span>, <span style="color: #ff0000;">&quot;loader1&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/mp3/GetDown.mp3&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;MP3&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/swf/externalsounds.swf&quot;</span>, <span style="color: #0066CC;">this</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;SWF&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader2:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #000000; font-weight: bold;">true</span>, <span style="color: #ff0000;">&quot;loader2&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader2.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../includes/admin/test.xml&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;XML&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
_oLoader2.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/swf/externalimages.swf&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;SWF Images&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
_oLoader2.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../includes/admin/test.css&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;CSS&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader2.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueue2Complete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader2.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>_oLoader.<span style="color: #006600;">getLoadedItems</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueue2Complete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>_oLoader2.<span style="color: #006600;">getLoadedItems</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
	setTimeout<span style="color: #66cc66;">&#40;</span>callDipose, <span style="color: #cc66cc;">3000</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> callDipose<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;QLManager Accessing Items:&quot;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&quot;</span>+QLManager.<span style="color: #006600;">getQueue</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;loader1&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">getItemAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&quot;</span>+QLManager.<span style="color: #006600;">getQueue</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;loader2&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">getItemAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
	QLManager.<span style="color: #006600;">disposeAll</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;QLManager Disposing:&quot;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&quot;</span>+QLManager.<span style="color: #006600;">getQueue</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;loader1&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&quot;</span>+QLManager.<span style="color: #006600;">getQueue</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;loader2&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="zip">Zip Loading Example</a></strong><br />
Make sure you have the nochump package in your source folder.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// Zip Loading Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/zip/assets.zip&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_COMPLETE</span>, onItemComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt; &quot;</span>+event.<span style="color: #0066CC;">type</span>, <span style="color: #ff0000;">&quot;item title: &quot;</span>+event.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">fileType</span> == QueueLoader.<span style="color: #006600;">FILE_ZIP</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span>ZIP Array: &quot;</span>+event.<span style="color: #006600;">content</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="wav">PCM Wav Loading Example</a></strong><br />
Make sure the Popforge library is included in your source along with the modified SoundFactory class that bypasses the swf.bin file. This modified class writes the bytes to a ByteArray instead.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">//PCM Wav Loading Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> soundChannel:SoundChannel = <span style="color: #000000; font-weight: bold;">new</span> SoundChannel<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/pcm/loop1.wav&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;Loop1&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_COMPLETE</span>, onItemComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt; &quot;</span>+event.<span style="color: #0066CC;">type</span>, <span style="color: #ff0000;">&quot;item title: &quot;</span>+event.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">fileType</span> == QueueLoader.<span style="color: #006600;">FILE_WAV</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		soundChannel = event.<span style="color: #006600;">content</span>.<span style="color: #0066CC;">play</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">999</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="mp3">MP3 Loading Example</a></strong><br />
<a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?id=58325849&#038;s=143441" target="_blank"><img src="/wp-content/island.jpg" alt="Audio Sample" width="150" height="150" /></a><br />
Audio taken from <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?id=58325849&#038;s=143441" target="_blank">Islands of Chill</a>. This album is great!</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">//MP3 Loading Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> soundChannel:SoundChannel = <span style="color: #000000; font-weight: bold;">new</span> SoundChannel<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/mp3/GetDown.mp3&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;MP3&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_COMPLETE</span>, onItemComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt; &quot;</span>+event.<span style="color: #0066CC;">type</span>, <span style="color: #ff0000;">&quot;item title: &quot;</span>+event.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">fileType</span> == QueueLoader.<span style="color: #006600;">FILE_MP3</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		soundChannel = event.<span style="color: #006600;">content</span>.<span style="color: #0066CC;">play</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="loadxml">Direct QL Formatted XML Loading Example</a></strong><br />
This snippet of XML can reside anywhere in your XML document. It allows for automatic passing of QueueLoader data. The prefix attribute simply adds the prefix when the movie is in external/standalone mode when publishing locally. If your paths jump directories or require absolute paths, then you can leave it as prefix="".</p>
<p>XML:<br />
<code lang="xml"><br />
<queueloader prefix="../"><br />
		<item container="this" src="flashassets/swf/externalimages.swf"><br />
			<info></p>
<p>				<cacheKiller><![CDATA[true]]&gt;</cacheKiller><br />
				<drawFrames><![CDATA[true]]&gt;</drawFrames><br />
			</info><br />
		</item><br />
		<item container="imageContainer" src="flashassets/images/slideshow/1.jpg"><br />
			<info></p>
<p>				<cacheKiller><![CDATA[true]]&gt;</cacheKiller><br />
			</info><br />
		</item><br />
		<item container="null" src="flashassets/images/slideshow/2.jpg"><br />
			<info></p>
<p>				<cacheKiller><![CDATA[true]]&gt;</cacheKiller><br />
			</info><br />
		</item><br />
		<item container="null" src="flashassets/images/slideshow/3.jpg"><br />
			<info></p>
<p>				<cacheKiller><![CDATA[true]]&gt;</cacheKiller><br />
			</info><br />
		</item><br />
	</queueloader>
</pre>
<p><a href="#top">Back To Top</a></p>
<p>The loadXML() method also accepts a scope variable which relates to the container attribute. I.E. scope[container]. If it's null, then the container has no parent reference and is the same as adding null to an addItem() method.</p>
<p>Actionscript:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">//Direct QL Formatted XML Loading Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../includes/admin/test.xml&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;XML&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_COMPLETE</span>, onItemComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt; &quot;</span>+event.<span style="color: #0066CC;">type</span>, <span style="color: #ff0000;">&quot;item title: &quot;</span>+event.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">title</span> == <span style="color: #ff0000;">&quot;XML&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		_oLoader.<span style="color: #006600;">loadXML</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">content</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="timeline">SWF Timeline Example</a></strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">//SWF Timeline Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../flashassets/swf/timeline.swf&quot;</span>, <span style="color: #0066CC;">this</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_COMPLETE</span>, onItemComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	queueprog.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">150</span> <span style="color: #66cc66;">*</span> event.<span style="color: #006600;">queuepercentage</span>;
	queue_txt.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;QUEUE: &quot;</span>+<span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">round</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">*</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> + <span style="color: #ff0000;">&quot;% COMPLETE&quot;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt; &quot;</span>+event.<span style="color: #0066CC;">type</span>, <span style="color: #ff0000;">&quot;item title: &quot;</span>+event.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">fileType</span> == QueueLoader.<span style="color: #006600;">FILE_SWF</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		event.<span style="color: #006600;">content</span>.<span style="color: #006600;">fireFunction</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		event.<span style="color: #006600;">content</span>.<span style="color: #0066CC;">gotoAndPlay</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<p><strong><a name="html">Generic Data Loading Example</a></strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">//Generic Data Loading Example</span>
&nbsp;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoader</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">hydrotik</span>.<span style="color: #006600;">queueloader</span>.<span style="color: #006600;">QueueLoaderEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> _oLoader:QueueLoader = <span style="color: #000000; font-weight: bold;">new</span> QueueLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;../queueloader.html&quot;</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #66cc66;">&#123;</span>title:<span style="color: #ff0000;">&quot;HTML&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">ITEM_COMPLETE</span>, onItemComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_PROGRESS</span>, onQueueProgress, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_oLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>QueueLoaderEvent.<span style="color: #006600;">QUEUE_COMPLETE</span>, onQueueComplete,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_oLoader.<span style="color: #006600;">execute</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueProgress<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt;onQueueProgress: &quot;</span>+event.<span style="color: #006600;">queuepercentage</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onItemComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&gt;&gt; &quot;</span>+event.<span style="color: #0066CC;">type</span>, <span style="color: #ff0000;">&quot;item title: &quot;</span>+event.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">title</span> == <span style="color: #ff0000;">&quot;HTML&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">content</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onQueueComplete<span style="color: #66cc66;">&#40;</span>event:QueueLoaderEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;** &quot;</span>+event.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><a href="#top">Back To Top</a></p>
<hr />
<strong>Source Downloads:</strong><br />
<a href="/wp-content/queueLoader_3-1-2.zip">QueueLoader 3.1.2 Example Files + Assets + Source + Documentation :: 28.44 MB</a><br />
<a href="/wp-content/queueLoader_3-1-2_src-docs.zip">QueueLoader 3.1.2 Source + Documentation :: 1.16 MB</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hydrotik.com/2008/10/29/queueloader-rev-31-major-update-usage/feed/</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
		<item>
		<title>HydroTween + HydroSequence rev37</title>
		<link>http://blog.hydrotik.com/2008/07/19/hydrotween-hydrosequence-rev32/</link>
		<comments>http://blog.hydrotik.com/2008/07/19/hydrotween-hydrosequence-rev32/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 03:30:20 +0000</pubDate>
		<dc:creator>djdonovan</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[GO]]></category>
		<category><![CDATA[Source Code]]></category>

		<guid isPermaLink="false">http://blog.hydrotik.com/?p=109</guid>
		<description><![CDATA[UPDATE: rev39, synced up with the 0.5.0 updates. Matrix tweening and some bug fixes. Fixed callback error from previous updates
Fuse style functionality has been moved from HydroTween to a separate class called HydroSequence!  This decision was made to offer an easier and more flexible way to control sequences by having clearer access to SequenceCA [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE: rev39, synced up with the 0.5.0 updates. Matrix tweening and some bug fixes. Fixed callback error from previous updates</strong></p>
<p>Fuse style functionality has been moved from HydroTween to a separate class called HydroSequence!  This decision was made to offer an easier and more flexible way to control sequences by having clearer access to SequenceCA super methods. Also makes it easier to enhance the functionality of the sequencing parser.  Here is the new syntax:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> seq1:HydroSequence = <span style="color: #000000; font-weight: bold;">new</span> HydroSequence<span style="color: #66cc66;">&#40;</span>
    <span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">target</span>:fusebox, x:<span style="color: #cc66cc;">320</span>, <span style="color: #0066CC;">duration</span>:<span style="color: #cc66cc;">1</span>, easing:Quadratic.<span style="color: #006600;">easeInOut</span><span style="color: #66cc66;">&#125;</span>,
    <span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">target</span>:fusebox, Blur_blurX:<span style="color: #cc66cc;">8</span>, Blur_blurY:<span style="color: #cc66cc;">8</span>, <span style="color: #0066CC;">duration</span>:<span style="color: #cc66cc;">1</span>, easing:Quadratic.<span style="color: #006600;">easeInOut</span><span style="color: #66cc66;">&#125;</span>,
    <span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">target</span>:fusebox, <span style="color: #0066CC;">color</span>:0x0000FF, <span style="color: #0066CC;">duration</span>:<span style="color: #cc66cc;">1</span>, easing:Quadratic.<span style="color: #006600;">easeInOut</span><span style="color: #66cc66;">&#125;</span>,
    <span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">target</span>:fusebox, Blur_blurX:<span style="color: #cc66cc;">0</span>, Blur_blurY:<span style="color: #cc66cc;">0</span>, <span style="color: #0066CC;">duration</span>:.8, easing:Quadratic.<span style="color: #006600;">easeInOut</span><span style="color: #66cc66;">&#125;</span>,
    <span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">target</span>:fusebox, x:<span style="color: #cc66cc;">400</span>, <span style="color: #0066CC;">duration</span>:.5, easing:Quadratic.<span style="color: #006600;">easeInOut</span><span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#41;</span>;
&nbsp;
seq1.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">target</span>:fusebox, rotation:<span style="color: #cc66cc;">270</span>, <span style="color: #0066CC;">duration</span>:<span style="color: #cc66cc;">3</span>, easing:Quadratic.<span style="color: #006600;">easeInOut</span><span style="color: #66cc66;">&#125;</span>, <span style="color: #66cc66;">&#123;</span>func:<span style="color: #0066CC;">trace</span>, args:<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;HELLO WORLD&quot;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
seq1.<span style="color: #0066CC;">start</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>Grouped Array targets are supported and the ability to add sequence objects with the addItem() method as well as using the constructor to create sequences.</p>
<p>In other news, I added a frame property to HydroTween which has been added to the demo swf here:</p>
<p>Also check out the <a href="http://code.google.com/p/goplayground/" target="_blank">GO Playground</a></p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_HydroTween_rev39_654414030"
			class="flashmovie"
			width="600"
			height="600">
	<param name="movie" value="/wp-content/HydroTween_rev39.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/wp-content/HydroTween_rev39.swf"
			name="fm_HydroTween_rev39_654414030"
			width="600"
			height="600">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Some extra advanced features from SequenceCA and beyond:</p>
<p><strong>Duration Advance:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> goItem : HydroSequence = <span style="color: #000000; font-weight: bold;">new</span> HydroSequence<span style="color: #66cc66;">&#40;</span>
	<span style="color: #66cc66;">&#91;</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #0066CC;">target</span>:<span style="color: #0066CC;">target</span>,
			x:<span style="color: #cc66cc;">400</span>,
			y:<span style="color: #cc66cc;">40</span>,
			Blur_blurX:<span style="color: #cc66cc;">32</span>,
			Blur_blurY:<span style="color: #cc66cc;">32</span>,
			DropShadow_distance:<span style="color: #cc66cc;">16</span>,
			DropShadow_alpha:<span style="color: #cc66cc;">16</span>,
			rotation:<span style="color: #cc66cc;">180</span>,
			start_alpha:.5,
			alpha:<span style="color: #cc66cc;">1</span>,
			scaleX:<span style="color: #cc66cc;">5</span>,
			scaleY:<span style="color: #cc66cc;">5</span>,
			<span style="color: #0066CC;">color</span>:0x0000FF,
			useRelative:<span style="color: #000000; font-weight: bold;">true</span>,
			<span style="color: #0066CC;">duration</span>:<span style="color: #cc66cc;">1</span>, <span style="color: #808080; font-style: italic;">// Note Duration is 1. When this finsishes, it waits for the other group item.</span>
			easing:Quintic.<span style="color: #006600;">easeIn</span>
		<span style="color: #66cc66;">&#125;</span>,
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #0066CC;">target</span>:target2,
			x:<span style="color: #cc66cc;">300</span>,
			Blur_blurX:<span style="color: #cc66cc;">0</span>,
			Blur_blurY:<span style="color: #cc66cc;">0</span>,
			scaleX:<span style="color: #cc66cc;">1</span>,
			scaleY:<span style="color: #cc66cc;">1</span>,
			<span style="color: #0066CC;">color</span>:HydroTween.<span style="color: #006600;">RESET</span>,
			<span style="color: #0066CC;">duration</span>:<span style="color: #cc66cc;">1</span>, <span style="color: #808080; font-style: italic;">// Note Duration is one, but...</span>
			repeater:<span style="color: #000000; font-weight: bold;">new</span> LinearGoRepeater<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #808080; font-style: italic;">// Repeater creates a 1 second tween * 2.</span>
			easing:Quintic.<span style="color: #006600;">easeInOut</span>
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// Here we add an advance property and instantiate an OnDurationComplete Object to tell</span>
<span style="color: #808080; font-style: italic;">// the sequence to skip ahead after 1 second instead of waiting for the full duration of </span>
<span style="color: #808080; font-style: italic;">// the sequence Object/item</span>
goItem.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">target</span>:<span style="color: #66cc66;">&#91;</span><span style="color: #0066CC;">target</span>,target2<span style="color: #66cc66;">&#93;</span>, advance:<span style="color: #000000; font-weight: bold;">new</span> OnDurationComplete<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>, alpha:<span style="color: #cc66cc;">0</span>, <span style="color: #0066CC;">duration</span>:<span style="color: #cc66cc;">6</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
goItem.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">target</span>:<span style="color: #66cc66;">&#91;</span><span style="color: #0066CC;">target</span>,target2<span style="color: #66cc66;">&#93;</span>, alpha:<span style="color: #cc66cc;">1</span>, <span style="color: #0066CC;">duration</span>:<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">// Another grouped sequence Object/item with a function call</span>
goItem.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">target</span>:<span style="color: #66cc66;">&#91;</span><span style="color: #0066CC;">target</span>,target2<span style="color: #66cc66;">&#93;</span>, x:<span style="color: #cc66cc;">10</span>, <span style="color: #0066CC;">duration</span>:<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#125;</span>,<span style="color: #66cc66;">&#123;</span>func:<span style="color: #0066CC;">trace</span>, args:<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;Start x tween&quot;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
goItem.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>func:<span style="color: #0066CC;">trace</span>, args:<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;Sequence Complete&quot;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
goItem.<span style="color: #0066CC;">start</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<hr />
<a href="/wp-content/HydroTween_HydroSequence_rev39.zip">HydroTween + HydroSequence Source and Example</a><br />
<a href="/wp-content/HydroTween_HydroSequence_rev39_src.zip">HydroTween + HydroSequence Source Only</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hydrotik.com/2008/07/19/hydrotween-hydrosequence-rev32/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>QueueLoader rev33</title>
		<link>http://blog.hydrotik.com/2008/07/09/queueloader-rev33/</link>
		<comments>http://blog.hydrotik.com/2008/07/09/queueloader-rev33/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 00:59:55 +0000</pubDate>
		<dc:creator>djdonovan</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[QueueLoader]]></category>
		<category><![CDATA[Source Code]]></category>

		<guid isPermaLink="false">http://blog.hydrotik.com/?p=108</guid>
		<description><![CDATA[UPDATE Latest Update and Source!
Made some fixes and updates per the helpful people on Google code as well as Richard Willis and Romuald Quantin. Google code site have been updated as well.
Thanks guys!

]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE</strong> <a href="http://blog.hydrotik.com/category/queueloader/">Latest Update and Source!</a></p>
<p>Made some fixes and updates per the helpful people on <a href="http://code.google.com/p/queueloader-as3/" target="_blank">Google code</a> as well as Richard Willis and Romuald Quantin. <a href="http://code.google.com/p/queueloader-as3/" target="_blank">Google code</a> site have been updated as well.</p>
<p>Thanks guys!</p>
<hr />
]]></content:encoded>
			<wfw:commentRss>http://blog.hydrotik.com/2008/07/09/queueloader-rev33/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Flashbelt 2008 + Animation to Go + HydroTween + Papervision3D</title>
		<link>http://blog.hydrotik.com/2008/06/08/flashbelt-2008-animation-to-go-hydrotween-papervision3d/</link>
		<comments>http://blog.hydrotik.com/2008/06/08/flashbelt-2008-animation-to-go-hydrotween-papervision3d/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 15:20:22 +0000</pubDate>
		<dc:creator>djdonovan</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flashbelt 08]]></category>
		<category><![CDATA[GO]]></category>
		<category><![CDATA[Making Things]]></category>
		<category><![CDATA[Papervision]]></category>
		<category><![CDATA[Source Code]]></category>

		<guid isPermaLink="false">http://blog.hydrotik.com/2008/06/08/flashbelt-2008-animation-to-go-hydrotween-papervision3d/</guid>
		<description><![CDATA[Getting ready to leave for MN and I'm very excited to be a part of Moses' presentation at Flashbelt 2008! I will be providing a brief introduction to  HydroTween. HydroTween is a multi-purpose tweening parser that runs on top of the Go framework. If you are familiar with ZigoEngine, Fuse, or Tweener, then using [...]]]></description>
			<content:encoded><![CDATA[<p>Getting ready to leave for MN and I'm very excited to be a part of Moses' presentation at Flashbelt 2008! I will be providing a brief introduction to  HydroTween. HydroTween is a multi-purpose tweening parser that runs on top of the Go framework. If you are familiar with ZigoEngine, Fuse, or Tweener, then using HydroTween should be a seamless transition. In this post, you will find the examples shown during the presentation. I've also put together an online version of what I will be showing. I was hoping to also include a demonstration of the Making Things controller running a tween on a servo, but my laptop isn't being cooperative. I will provide a separate post with an update on that as well as a library I am working on for controlling modules.</p>
<p>Back to the subject at hand, here are the 3 examples that I will be showing. The first is an example of generic tweening with most of the basic properties, filters, and image/hsb tweening. The second is a Fuse type example using navigation with multiple tweening properties running at once. The last is a Papervision3D example that is tweening a number of properties including brightness. Thanks to Andy Zupko's heroic efforts of merging the GreatWhite and Effects branches of Papervision together, we have alpha and the other none-positioning properties at our tweening disposal for 3D objects!</p>
<p><a href="/wp-content/flashbelt2008/" target="_blank">Here is the link to the presentation along with the examples.</a> &#8211; Click into the SWF, then use the forward and back arrows to navigate.</p>
<p>I also urge you to check out my previous post that has useful information and source examples, along with changes and important features that have been added. HydroTween will call you renderer for automatic updating of your Papervision scene by registering with HydroTween using the init3D() method. One important new addition is the ability to pass a DisplayObject3D target into this init method for automatic use of the lookAt() method.</p>
<p><a href="http://blog.hydrotik.com/2008/05/13/go-048jg1-hydrotween-rev30-guide-source-code/">Here is the link to the previous post with more information about using HydroTween.</a></p>
<p>If you'd like to go directly to the examples:<br />
<a href="/wp-content/flashbelt2008/hydrotween.html" target="_blank">Generic HydroTween</a><br />
<a href="/wp-content/flashbelt2008/fuse.html" target="_blank">Fuse Style Tweening</a><br />
<a href="/wp-content/flashbelt2008/papervision.html" target="_blank">Papervision3D</a> &#8211; Clicking on an image will bring it up.</p>
<p>Looking forward to seeing everyone there!</p>
<p>And of course, the source! I have included everything in the examples, including the presentation!</p>
<hr />
<a href="/wp-content/flashbelt2008/FlashBelt%20Presentation.zip">Flashbelt2008 HydroTween Source and Examples</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hydrotik.com/2008/06/08/flashbelt-2008-animation-to-go-hydrotween-papervision3d/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
