public var changed:String
public var entering:String
public var exiting:String
public var name:String
protected var transitions:Object
Transition map of actions to target states
public function State(name:String, entering:String = null, exiting:String = null, changed:String = null)
Constructor.
Parameters
| name:String — the id of the state
|
|
| entering:String (default = null ) — an optional notification name to be sent when entering this state
|
|
| exiting:String (default = null ) — an optional notification name to be sent when exiting this state
|
|
| changed:String (default = null ) — an optional notification name to be sent when fully transitioned to this state
|
public function defineTrans(action:String, target:String):void
Define a transition.
Parameters
| action:String — the name of the StateMachine.ACTION Notification type.
|
|
| target:String — the name of the target state to transition to.
|
public function getTarget(action:String):String
Get the target state name for a given action.
Parameters
Returns
public function removeTrans(action:String):void
Remove a previously defined transition.
Parameters