AssetLoader v3 – Ideas/Roadmap
Posted 29 August 2011 by Matan Uberstein
Hi there lovers of AssetLoader, the time as come to starting thinking about what we’d like to change with the next version. Below is a “dynamic” list of things that I have in mind. Please feel free to voice your opinion to get your idea(s) on the list.
Prospected API Changes:
Please keep in mind that these are not implemented yet, this list only consist of ideas.
ILoader – These changes will bubble to IAssetLoader
| API | Description |
|---|---|
| onDestroy : LoaderSignal | Dispatches just before the loader is destroyed. This will give you an opportunity to null any lingering references. |
| onHttpStatus : HttpStatusSignal | Remove – Relocate to ILoader implementations that actually dispatches http status. |
| prioritize (force : Boolean = false) : void | If loader forms part of a loading queue, bring loader to top of queue. If force is true, stop all other loading operations. |
| destroy (verbose : Boolean = false) : void | Loader will invoke removeAll on it’s public signals in addition to internal clean up. |
IAssetLoader
| API | Description |
|---|---|
| onConfigAdded : LoaderSignal | Dispatches when the IAssetLoader has received and parsed new config via the addConfig function. Note that onConfigLoaded will still fire, but only if config was loaded via an external file. |
| add (request : *, params : Object = null) : ILoader | Argument – request – Can accept: URLRequest instance or url/path String or an ILoader instance.
Argument – params – Accepts an Object representation of parameters. Please note that “type” and “id” can be passed here, an automatic id will be assigned if not passed and the default type is “auto”. |
| addLazy | Remove – No longer needed as it’s replaced by add. |
| addLoader | Remove – No longer needed as it’s replaced by add. |
| breakQueueOnError : Boolean = false | The loading queue will be halted if any of the child loaders failes to load. Default behaviour will cause the queue to continue and dispatch complete regardless of child error. |
| failOnError : Boolean | Remove – No longer needed as it’s replaced by breakQueueOnError. |
| factory : ILoaderFactory | Makes the factory swappable. |
New ILoaders
| Name | Description |
|---|---|
| RootLoader | Ability to monitor a SWF that’s being embedded/loaded by the browser. Useful for large muli-framed preloaders. |
| AVM1Loader | Load AS2 swfs without increasing the processing usage of the standard SWFLoader. |
Global Changes:
| Affected Class | Description |
|---|---|
| Param | All values of public static constants will be rewritten to camel-case. |
| ConfigParser | Will be completely rewritten. |
| StatsMonitor | Move to utils package. |
| LoaderFactory | Will be swappable for a different implementation thus needing an interface. Ability to map custom file extension association. Ability to register different ILoader implementations for type detection. |
| LoaderStats | Revisit and extend testing. |
| BitmapLoader | Add safety net for limited security domain. E.g. don’t access bitmap data if security domain doesn’t allow it. |
Conclusion:
There will be smaller updates, other than the mentioned above, as well. It’s just a bit difficult knowing what they are at this point.
Please voice your opinions, together we can make AssetLoader even better!
Post Details
- Post Title: AssetLoader v3 – Ideas/Roadmap
- Date Posted: 29 August 2011
- Author: Matan Uberstein
- Filed As: AS3, AssetLoader
- Tags: AS3, AssetLoader, Loading

Pingback: What AS3 Project to focus on next? | Does Flash? | AS3 Blog