Packagecom.flextoolbox.utils
Classpublic class TheInstantiator

Utility for creating instances of Flex sub-components or skins.



Public Methods
 MethodDefined by
  
newInstance(type:Object, styleName:String = null):Object
[static] Creates a new instance of an object.
TheInstantiator
Method detail
newInstance()method
public static function newInstance(type:Object, styleName:String = null):Object

Creates a new instance of an object. Supports Class, Function, a fully-qualified class name String, or mx.core.IFactory.

Parameters
type:Object — The type to instantiate
 
styleName:String (default = null) — The styleName to set if the instantiated object supports styles.

Returns
Object