Packageandromeda.process
Classpublic class SimpleAction
InheritanceSimpleAction Inheritance CoreEventDispatcher Inheritance CoreObject
ImplementsIAction
SubclassesAction, ActionProxy, BatchProcess, EventDispatcherProcess, FrameEngine, FrameTimer, ObjectFactoryLoader

A simple representation of the IAction 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
  running : Boolean
[read-only] (read-only) Indicates true if the process is in progress.
SimpleAction
Public Methods
 MethodDefined by
  
SimpleAction(bGlobal:Boolean = false, sChannel:String = null)
Creates a new SimpleAction instance.
SimpleAction
 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.
SimpleAction
 Inherited
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
CoreEventDispatcher
 Inherited
Returns the internal EventDispatcher reference.
CoreEventDispatcher
 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
 Inherited
isLocked():Boolean
Returns true if the object is locked.
CoreEventDispatcher
 Inherited
lock():void
Locks the object.
CoreEventDispatcher
  
Notify an ActionEvent when the process is finished.
SimpleAction
  
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
  
run(... arguments):void
Run the process.
SimpleAction
 Inherited
Sets the internal EventDispatcher reference.
CoreEventDispatcher
 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
  
setRunning(b:Boolean):void
Changes the running property value.
SimpleAction
Events
 EventSummaryDefined by
   Dispatched when a process is finished.SimpleAction
   Dispatched when a process is started.SimpleAction
Property detail
runningproperty
running:Boolean  [read-only]

(read-only) Indicates true if the process is in progress.

Implementation
    public function get running():Boolean
Constructor detail
SimpleAction()constructor
public function SimpleAction(bGlobal:Boolean = false, sChannel:String = null)

Creates a new SimpleAction 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 function clone():*

Returns a shallow copy of this object.

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

Notify an ActionEvent when the process is finished.

notifyStarted()method 
public function notifyStarted():void

Notify an ActionEvent when the process is started.

run()method 
public function run(... arguments):void

Run the process. You can overrides this method in your iherited class.

Parameters
... arguments
setRunning()method 
protected function setRunning(b:Boolean):void

Changes the running property value.

Parameters
b:Boolean
Event detail
onFinishedevent 
Event object type: andromeda.events.ActionEvent
ActionEvent.type property = andromeda.events.ActionEvent.FINISH

Dispatched when a process is finished.

The name of the event when the process is finished.

See also

onStartedevent  
Event object type: andromeda.events.ActionEvent
ActionEvent.type property = andromeda.events.ActionEvent.START

Dispatched when a process is started.

The name of the event when the process is started.

See also