The ComponentFactory will give us a component based on the type of variable we're looking at
public static function getComponent(obj:*, variable:EditableVar, parent:DisplayObjectContainer = null, x:Number = 0.0, y:Number = 0.0):GOEComponent
Creates a new GOEComponent
based on the type of variable that's passed in
Parameters
| obj:* — The object that we're dealing with
|
|
| variable:EditableVar — The EditableVar object that holds our variable info
|
|
| parent:DisplayObjectContainer (default = null ) — The DisplayObjectContainer to add this component to
|
|
| x:Number (default = 0.0 ) — The component x position
|
|
| y:Number (default = 0.0 ) — The component y position
|
Returns | GOEComponent — The GOEComponent that was created for this variable, or null if
we couldn't find a component for the type
|
Thu Apr 21 2011, 11:21 PM +02:00