Packagesystem.process
Classpublic class DelayedTask
InheritanceDelayedTask Inheritance CoreAction Inheritance Task Inheritance Object
Implements Resumable, Startable, Stoppable

Provides a delayed task, the task is executed after a specific delay in milliseconds.



Public Properties
 PropertyDefined By
 InheritedchangeIt : Signaler
This signal emit when the notifyChanged method is invoked.
CoreAction
 InheritedclearIt : Signaler
This signal emit when the notifyCleared method is invoked.
CoreAction
  delay : Number
The delay, in milliseconds, to start the task.
DelayedTask
 InheritedfinishIt : Signaler
This signal emit when the notifyFinished method is invoked.
Task
 InheritedinfoIt : Signaler
This signal emit when the notifyInfo method is invoked.
CoreAction
 Inheritedlogger : Logger
Determinates the internal Logger reference of this Loggable object.
Task
 Inheritedlooping : Boolean
The flag to determinate if the Action object is looped.
CoreAction
 InheritedloopIt : Signaler
This signal emit when the notifyLooped method is invoked.
CoreAction
 InheritedpauseIt : Signaler
This signal emit when the notifyPause method is invoked.
CoreAction
 Inheritedphase : String
[read-only] The current phase of the action.
Task
 InheritedprogressIt : Signaler
This signal emit when the notifyProgress method is invoked.
CoreAction
 InheritedresumeIt : Signaler
This signal emit when the notifyResumed method is invoked.
CoreAction
 Inheritedrunning : Boolean
[read-only] Indicates true if the process is in progress.
Task
 InheritedstartIt : Signaler
This signal emit when the notifyStarted method is invoked.
Task
 InheritedstopIt : Signaler
This signal emit when the notifyStopped method is invoked.
CoreAction
  stopped : Boolean
[read-only] Indicates if the task is stopped.
DelayedTask
  task : Action
The Action reference to register.
DelayedTask
 InheritedtimeoutIt : Signaler
This signal emit when the notifyTimeOut method is invoked.
CoreAction
Public Methods
 MethodDefined By
  
DelayedTask(task:Action = null, delay:Number = 0)
Creates a new DelayedTask instance.
DelayedTask
  
clone():*
[override] Returns a shallow copy of this object.
DelayedTask
 Inherited
isLocked():Boolean
Returns true if the object is locked.
Task
 Inherited
lock():void
Locks the object.
Task
 Inherited
Notify when the process is changed.
CoreAction
 Inherited
Notify when the process is cleared.
CoreAction
 Inherited
Notify an ActionEvent when the process is finished.
Task
 Inherited
notifyInfo(info:*):void
Notify a specific information when the process is changed.
CoreAction
 Inherited
Notify when the process is looped.
CoreAction
 Inherited
Notify when the process is paused.
CoreAction
 Inherited
Notify when the process is in progress.
CoreAction
 Inherited
Notify when the process is resumed.
CoreAction
 Inherited
Notify an ActionEvent when the process is started.
Task
 Inherited
Notify when the process is stopped.
CoreAction
 Inherited
Notify when the process is out of time.
CoreAction
  
resume():void
Resume the chain.
DelayedTask
  
run(... arguments):void
[override] Run the process.
DelayedTask
  
start():void
Starts the chain.
DelayedTask
  
stop():void
Stops the task group.
DelayedTask
 Inherited
unlock():void
Unlocks the display.
Task
Protected Methods
 MethodDefined By
 Inherited
setRunning(b:Boolean):void
Changes the running property value.
Task
Protected Constants
 ConstantDefined By
  NONE : String = none
[static] The state when the task is not stopped.
DelayedTask
  TASK : String = task
[static] The state when the task is stopped during the task process.
DelayedTask
  TIMER : String = timer
[static] The state when the task is stopped during the timer process.
DelayedTask
Property Detail
delayproperty
delay:Number

The delay, in milliseconds, to start the task.


Implementation
    public function get delay():Number
    public function set delay(value:Number):void
stoppedproperty 
stopped:Boolean  [read-only]

Indicates if the task is stopped.


Implementation
    public function get stopped():Boolean
taskproperty 
public var task:Action

The Action reference to register.

Constructor Detail
DelayedTask()Constructor
public function DelayedTask(task:Action = null, delay:Number = 0)

Creates a new DelayedTask instance.

Parameters
task:Action (default = null) — The Action object to delayed.
 
delay:Number (default = 0) — The delay, in milliseconds, to execute the task.
Method Detail
clone()method
override public function clone():*

Returns a shallow copy of this object.

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

Resume the chain.

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

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

Parameters

... arguments

start()method 
public function start():void

Starts the chain.

stop()method 
public function stop():void

Stops the task group.

Constant Detail
NONEConstant
protected static const NONE:String = none

The state when the task is not stopped.

TASKConstant 
protected static const TASK:String = task

The state when the task is stopped during the task process.

TIMERConstant 
protected static const TIMER:String = timer

The state when the task is stopped during the timer process.