Packagecom.degrafa.utilities
Classpublic class Aliases

The Aliases helper is for registering a Degrafa manifest of class aliases. This class is supportive for potential ByteArray cacheing, if used, or for future runtime loading of externally created amf-encoded degrafa objects.



Public Methods
 MethodDefined by
  
getClassReference(alias:String):Class
[static] Provides a method of Class retrieval that is faster than flash.utils.getDefinitionByName for specific class references stored here.
Aliases
  
isRegistered(classOrAlias:*):Boolean
[static]
Aliases
  
registerAll():void
[static] Registers all classes stored in the Aliases class static manifest object
Aliases
Method detail
getClassReference()method
public static function getClassReference(alias:String):Class

Provides a method of Class retrieval that is faster than flash.utils.getDefinitionByName for specific class references stored here.

Parameters
alias:String — a string that represents the alias for the class being requested

Returns
Class — a reference to the Class from the alias
isRegistered()method 
public static function isRegistered(classOrAlias:*):Boolean

Parameters
classOrAlias:* — either a Class reference or an alias to check

Returns
Boolean — true if the Class or alias is already registered.
registerAll()method 
public static function registerAll():void

Registers all classes stored in the Aliases class static manifest object