| Package | com.flextoolbox.utils |
| Class | public class TheInstantiator |
| Method | Defined by | ||
|---|---|---|---|
|
newInstance(type:Object, styleName:String = null):Object
[static]
Creates a new instance of an object.
| TheInstantiator | ||
| newInstance | () | method |
public static function newInstance(type:Object, styleName:String = null):ObjectCreates a new instance of an object. Supports Class, Function, a fully-qualified class name String, or mx.core.IFactory.
Parameterstype:Object — The type to instantiate
|
|
styleName:String (default = null) — The styleName to set if the instantiated object supports styles.
|
Object |