AssetManager is a simple, yet flexible, solution to asset management for AS3 projects. It provides a clean, simple and well documented API to allow you to focus on building your projects quickly without having to worry about how to load, store and retrieve assets. AssetManager contains a simple plugin architecture for file formated to keep the footprint low.
Some features:
- Clean and simple API
- Global and local loading queues
- Nestable queues
- Simple purging system for managing garbage collection and keeping memory usage in check
- Priority system for controlling loading priority of individual assets and nested queues
- Ability to store any valid ActionScript object, so all assets, internal or external, can be managed through AssetManager
- Support for XML formatted asset lists
- Plugin architecture for handling different data and file formats. Included format handlers are:
- Binary
- Images (PNG, GIF and JPEG)
- Sound (MP3)
- SWF
- Video (All Flash Platform supported video formats)
- XML
- Name/value pairs
- Adobe Pixel Blender Shaders
- Easily extendable with custom plugins to support any format
- Suitable for use in both small projects and large enterprise level projects
Sample
AssetManager.getInstance().add("image.png", { onComplete: function():void { trace("Asset complete:", AssetManager.getInstance().get("image.png")); } });
New: AssetManager (simple, yet flexible, solution to asset management, built with games in mind) http://t.co/Q8zVc32T #as3 #flash #gamdev
Very handy. Thanks!
Kudos to @stevewoolcock