Package | com.divillysausages.gameobjeditor.component |
Class | public class WatchComponent |
Inheritance | WatchComponent ![]() ![]() |
Method | Defined By | ||
---|---|---|---|
WatchComponent(obj:*, variable:EditableVar, parent:DisplayObjectContainer = null, x:Number = 0.0, y:Number = 0.0)
Creates a new WatchComponent
| WatchComponent | ||
![]() | destroy():void
Destroys the component and clears it for garbage collection
| GOEComponent | |
update():void [override]
Updates the WatchComponent to always match our object's variable
| WatchComponent |
WatchComponent | () | Constructor |
public function WatchComponent(obj:*, variable:EditableVar, parent:DisplayObjectContainer = null, x:Number = 0.0, y:Number = 0.0)
Creates a new WatchComponent
Parametersobj:* — 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
|
update | () | method |
override public function update():void
Updates the WatchComponent to always match our object's variable