Packagecom.transmote.utils.ui
Classpublic class EmbeddedLibrary
InheritanceEmbeddedLibrary Inheritance flash.events.EventDispatcher

An interface for accessing symbol definitions in the Library of a SWF embedded in the application. Modified from Grant Skinner's FlashLib class: http://www.gskinner.com/blog/archives/2007/03/using_flash_sym.html To init, pass into the constructor a Class instance that refers to a SWF embedded via the Embed meta tag. Ensure embeddedLibrary is inited before attempting to access symbol classes/instances by handling an Event.INIT from this instance; failure to wait for init can result in runtime errors. Symbol classes can be accessed via getSymbolDefinition(). Symbol instances can be generated via getSymbolInstance().



Public Properties
 PropertyDefined By
  inited : Boolean
[read-only] Returns true if the EmbeddedLibrary is fully loaded and initialized, and the symbols within are prepared for access via Actionscript.
EmbeddedLibrary
Protected Properties
 PropertyDefined By
  embeddedLibrary : Class
EmbeddedLibrary
Public Methods
 MethodDefined By
  
EmbeddedLibrary(embeddedLibrary:Class)
Constructor.
EmbeddedLibrary
  
dispose():void
Free up the EmbeddedLibrary for garbage collection.
EmbeddedLibrary
  
getSymbolDefinition(className:String):Class
Access the library symbol's Class, which can be used to instantiate symbol instances.
EmbeddedLibrary
  
getSymbolInstance(symbolClassName:String):*
Generate an instance of the library symbol.
EmbeddedLibrary
Property Detail
embeddedLibraryproperty
protected var embeddedLibrary:Class

initedproperty 
inited:Boolean  [read-only]

Returns true if the EmbeddedLibrary is fully loaded and initialized, and the symbols within are prepared for access via Actionscript.


Implementation
    public function get inited():Boolean
Constructor Detail
EmbeddedLibrary()Constructor
public function EmbeddedLibrary(embeddedLibrary:Class)

Constructor.

Parameters
embeddedLibrary:Class — A Class instance that refers to a SWF embedded via the Embed meta tag.
Method Detail
dispose()method
public function dispose():void

Free up the EmbeddedLibrary for garbage collection.

getSymbolDefinition()method 
public function getSymbolDefinition(className:String):Class

Access the library symbol's Class, which can be used to instantiate symbol instances.

Parameters

className:String — The symbol's Class name.

Returns
Class
getSymbolInstance()method 
public function getSymbolInstance(symbolClassName:String):*

Generate an instance of the library symbol.

Parameters

symbolClassName:String — The symbol's Class name.

Returns
*