Packagecom.flextoolbox.utils
Classpublic class TheInstantiator

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



Public Methods
 MethodDefined by
  
newInstance(type:Object, styleNameValue:String = null):Object
[static] Creates a new instance of an object.
TheInstantiator
Method detail
newInstance()method
public static function newInstance(type:Object, styleNameValue: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
 
styleNameValue:String (default = null) — The value to pass to the instance's styleName property if the instance supports styles.

Returns
Object