My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
ResourceProcessor  
Using the [Resource] custom metadata tag (v1.5.0)
Featured
Updated Jan 5, 2011 by sam...@gmail.com

Example SWF and Source.

ResourceProcessor binds a resource from the ResourceManager singleton to the decorated property. It uses the IResource.getObject() method when binding so you can decorate properties of types supported by ResourceManager.

Usage:

  1. If using the source directly, add Resource to the list of metadata tags to keep when compiling. The Resource tag is included in the SWC as of v1.2.0.
  2. Add ResourceProcessor to the Swiz instance
  3. Decorate methods with [Resource]. You must define key and bundle properties. E.g.
  4. [Resource(key="title", bundle="main")]
This intentionally mirrors the @Resource directive.

Sign in to add a comment
Powered by Google Project Hosting