Packageandromeda.process
Classpublic class Action
InheritanceAction Inheritance SimpleAction Inheritance CoreEventDispatcher Inheritance CoreObject
SubclassesAbstractTransition, CoreActionLoader, Motion, ObjectDefinitionContainer, Pause, RemotingService, Sequencer

This class simplify a full implementation of the Action interface.



Public Properties
 PropertyDefined by
 Inheritedchannel : String
Indicates the channel of this dispatcher if this instance is global.
CoreEventDispatcher
 InheritedisGlobal : Boolean
(read-only) Returns the value of the isGlobal flag of this model.
CoreEventDispatcher
  looping : Boolean
The flag to determinate if the Action object is looped.
Action
 Inheritedrunning : Boolean
(read-only) Indicates true if the process is in progress.
SimpleAction
Public Methods
 MethodDefined by
  
Action(bGlobal:Boolean = false, sChannel:String = null)
Creates a new Action instance.
Action
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0.0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target.
CoreEventDispatcher
  
clone():*
Returns a shallow copy of this object.
Action
 Inherited
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
CoreEventDispatcher
 Inherited
Returns the internal EventDispatcher reference.
CoreEventDispatcher
  
Returns the event name use in the notifyChanged method.
Action
  
Returns the event name use in the notifyCleared method.
Action
  
Returns the event name use in the notifyInfo method.
Action
  
Returns the event name use in the notifyLooped method.
Action
  
Returns the event name use in the notifyProgress method.
Action
  
Returns the event name use in the notifyResumed method.
Action
  
Returns the event name use in the notifyStopped method.
Action
  
Returns the event name use in the notifyTimeOut method.
Action
 Inherited
getIsGlobal():Boolean
Returns the value of the isGlobal flag of this model.
CoreEventDispatcher
 Inherited
Returns the internal ILogger reference of this ILogable object.
CoreObject
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
CoreEventDispatcher
 Inherited
hashCode():uint
Returns a hashcode value for the object.
CoreObject
 Inherited
Creates and returns the internal EventDispatcher reference (this method is invoked in the constructor).
CoreEventDispatcher
  
Initialize the internal event's types of this process.
Action
 Inherited
isLocked():Boolean
Returns true if the object is locked.
CoreEventDispatcher
 Inherited
lock():void
Locks the object.
CoreEventDispatcher
 Inherited
Notify an ActionEvent when the process is finished.
SimpleAction
 Inherited
Notify an ActionEvent when the process is started.
SimpleAction
 Inherited
registerEventListener(type:String, listener:Boolean, useCapture:int = false, priority:Boolean = 0, useWeakReference:* = false):void
Allows the registration of event listeners on the event target (Function or EventListener).
CoreEventDispatcher
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
CoreEventDispatcher
 Inherited
run(... arguments):void
Run the process.
SimpleAction
 Inherited
Sets the internal EventDispatcher reference.
CoreEventDispatcher
  
setEventTypeCHANGE(type:String):void
Sets the event name use in the notifyChanged method.
Action
  
setEventTypeCLEAR(type:String):void
Sets the event name use in the notifyCleared method.
Action
  
setEventTypeINFO(type:String):void
Sets the event name use in the notifyInfo method.
Action
  
setEventTypeLOOP(type:String):void
Sets the event name use in the notifyLooped method.
Action
  
setEventTypePROGRESS(type:String):void
Sets the event name use in the notifyProgress method.
Action
  
setEventTypeRESUME(type:String):void
Sets the event name use in the notifyResumed method.
Action
  
setEventTypeSTOP(type:String):void
Sets the event name use in the notifyStopped method.
Action
  
setEventTypeTIMEOUT(type:String):void
Sets the event name use in the notifyTimeOut method.
Action
 Inherited
setGlobal(flag:Boolean = false, channel:String = null):void
Sets if the instance use a global EventDispatcher to dispatch this events, if the flag value is false the instance use a local EventDispatcher.
CoreEventDispatcher
 Inherited
setLogger(log:ILogger = null):void
Sets the internal ILogger reference of this ILogable object.
CoreObject
 Inherited
toSource(indent:int = 0):String
Returns the string representation the source code of the object.
CoreEventDispatcher
 Inherited
toString():String
Returns the string representation of this instance.
CoreObject
 Inherited
unlock():void
Unlocks the display.
CoreEventDispatcher
 Inherited
unregisterEventListener(type:String, listener:Boolean, useCapture:* = false):void
Removes a listener (Function or EventListener object) from the EventDispatcher object.
CoreEventDispatcher
 Inherited
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
CoreEventDispatcher
Protected Methods
 MethodDefined by
  
Notify an ActionEvent when the process is changed.
Action
  
Notify an ActionEvent when the process is cleared.
Action
  
notifyInfo(info:*):void
Notify an ActionEvent when the process info is changed.
Action
  
notifyLooped():void
Notify an ActionEvent when the process is looped.
Action
  
Notify an ActionEvent when the process is in progress.
Action
  
Notify an ActionEvent when the process is resumed.
Action
  
Notify an ActionEvent when the process is stopped.
Action
  
Notify an ActionEvent when the process is out of time.
Action
 Inherited
setRunning(b:Boolean):void
Changes the running property value.
SimpleAction
Events
 EventSummaryDefined by
   Dispatched when a process is changed.Action
   Dispatched when a process is cleared.Action
 Inherited Dispatched when a process is finished.SimpleAction
   Dispatched when an info process is running.Action
   Dispatched when a process is looped.Action
   Dispatched when a process is paused.Action
   Dispatched when a process is in progress.Action
   Dispatched when a process is resumed.Action
 Inherited Dispatched when a process is started.SimpleAction
   Dispatched when a process is stopped.Action
Property detail
loopingproperty
public var looping:Boolean

The flag to determinate if the Action object is looped.

Constructor detail
Action()constructor
public function Action(bGlobal:Boolean = false, sChannel:String = null)

Creates a new Action instance.

Parameters
bGlobal:Boolean (default = false) — the flag to use a global event flow or a local event flow.
 
sChannel:String (default = null) — the name of the global event flow if the bGlobal argument is true.
Method detail
clone()method
public override function clone():*

Returns a shallow copy of this object.

Returns
* — a shallow copy of this object.
getEventTypeCHANGE()method 
public function getEventTypeCHANGE():String

Returns the event name use in the notifyChanged method.

Returns
String — the event name use in the notifyChanged method.
getEventTypeCLEAR()method 
public function getEventTypeCLEAR():String

Returns the event name use in the notifyCleared method.

Returns
String — the event name use in the notifyCleared method.
getEventTypeINFO()method 
public function getEventTypeINFO():String

Returns the event name use in the notifyInfo method.

Returns
String — the event name use in the notifyInfo method.
getEventTypeLOOP()method 
public function getEventTypeLOOP():String

Returns the event name use in the notifyLooped method.

Returns
String — the event name use in the notifyLooped method.
getEventTypePROGRESS()method 
public function getEventTypePROGRESS():String

Returns the event name use in the notifyProgress method.

Returns
String — the event name use in the notifyProgress method.
getEventTypeRESUME()method 
public function getEventTypeRESUME():String

Returns the event name use in the notifyResumed method.

Returns
String — the event name use in the notifyResumed method.
getEventTypeSTOP()method 
public function getEventTypeSTOP():String

Returns the event name use in the notifyStopped method.

Returns
String — the event name use in the notifyStopped method.
getEventTypeTIMEOUT()method 
public function getEventTypeTIMEOUT():String

Returns the event name use in the notifyTimeOut method.

Returns
String — the event name use in the notifyTimeOut method.
initEventType()method 
public function initEventType():void

Initialize the internal event's types of this process.

notifyChanged()method 
protected function notifyChanged():void

Notify an ActionEvent when the process is changed.

notifyCleared()method 
protected function notifyCleared():void

Notify an ActionEvent when the process is cleared.

notifyInfo()method 
protected function notifyInfo(info:*):void

Notify an ActionEvent when the process info is changed.

Parameters
info:*
notifyLooped()method 
protected function notifyLooped():void

Notify an ActionEvent when the process is looped.

notifyProgress()method 
protected function notifyProgress():void

Notify an ActionEvent when the process is in progress.

notifyResumed()method 
protected function notifyResumed():void

Notify an ActionEvent when the process is resumed.

notifyStopped()method 
protected function notifyStopped():void

Notify an ActionEvent when the process is stopped.

notifyTimeOut()method 
protected function notifyTimeOut():void

Notify an ActionEvent when the process is out of time.

setEventTypeCHANGE()method 
public function setEventTypeCHANGE(type:String):void

Sets the event name use in the notifyChanged method.

Parameters
type:String
setEventTypeCLEAR()method 
public function setEventTypeCLEAR(type:String):void

Sets the event name use in the notifyCleared method.

Parameters
type:String
setEventTypeINFO()method 
public function setEventTypeINFO(type:String):void

Sets the event name use in the notifyInfo method.

Parameters
type:String
setEventTypeLOOP()method 
public function setEventTypeLOOP(type:String):void

Sets the event name use in the notifyLooped method.

Parameters
type:String
setEventTypePROGRESS()method 
public function setEventTypePROGRESS(type:String):void

Sets the event name use in the notifyProgress method.

Parameters
type:String
setEventTypeRESUME()method 
public function setEventTypeRESUME(type:String):void

Sets the event name use in the notifyResumed method.

Parameters
type:String
setEventTypeSTOP()method 
public function setEventTypeSTOP(type:String):void

Sets the event name use in the notifyStopped method.

Parameters
type:String
setEventTypeTIMEOUT()method 
public function setEventTypeTIMEOUT(type:String):void

Sets the event name use in the notifyTimeOut method.

Parameters
type:String
Event detail
onChangedevent 
Event object type: andromeda.events.ActionEvent
ActionEvent.type property = andromeda.events.ActionEvent.CHANGE

Dispatched when a process is changed.

The name of the event when the process info is changed.

See also

onClearedevent  
Event object type: andromeda.events.ActionEvent
ActionEvent.type property = andromeda.events.ActionEvent.CLEAR

Dispatched when a process is cleared.

The name of the event when the process is cleared.

See also

onInfoevent  
Event object type: andromeda.events.ActionEvent
ActionEvent.type property = andromeda.events.ActionEvent.INFO

Dispatched when an info process is running.

See also

onLoopedevent  
Event object type: andromeda.events.ActionEvent
ActionEvent.type property = andromeda.events.ActionEvent.LOOP

Dispatched when a process is looped.

The name of the event when the process is looped.

See also

onPausedevent  
Event object type: andromeda.events.ActionEvent
ActionEvent.type property = andromeda.events.ActionEvent.PAUSE

Dispatched when a process is paused.

The name of the event when the process is in pause.

See also

onProgressevent  
Event object type: andromeda.events.ActionEvent
ActionEvent.type property = andromeda.events.ActionEvent.PROGRESS

Dispatched when a process is in progress.

The name of the event when the process is in progress.

See also

onResumedevent  
Event object type: andromeda.events.ActionEvent
ActionEvent.type property = andromeda.events.ActionEvent.RESUME

Dispatched when a process is resumed.

The name of the event when the process is resumed.

See also

onStoppedevent  
Event object type: andromeda.events.ActionEvent
ActionEvent.type property = andromeda.events.ActionEvent.STOP

Dispatched when a process is stopped.

The name of the event when the process is stopped.

See also