| Package | system.process |
| Class | public dynamic class Pause |
| Inheritance | Pause CoreAction Task Object |
| Implements | Serializable, Startable, Stoppable |
Example :
import system.events.Action ;
import system.process.Pause ;
var finish:Function = function( action:Action ):void
{
trace( "finish" ) ;
}
var start:Function = function( action:Action ):void
{
trace( "start" ) ;
}
var pause:Pause = new Pause( 10 ) ; // 10 seconds
pause.startIt.connect( start ) ;
pause.finishIt.connect( finish ) ;
pause.run() ;
| Property | Defined By | ||
|---|---|---|---|
![]() | changeIt : Signaler
This signal emit when the notifyChanged method is invoked. | CoreAction | |
![]() | clearIt : Signaler
This signal emit when the notifyCleared method is invoked. | CoreAction | |
| delay : Number [read-only]
Indicates the delay of the pause in ms. | Pause | ||
| duration : Number
Indicates the duration of the process. | Pause | ||
![]() | finishIt : Signaler
This signal emit when the notifyFinished method is invoked. | Task | |
![]() | infoIt : Signaler
This signal emit when the notifyInfo method is invoked. | CoreAction | |
![]() | logger : Logger
Determinates the internal Logger reference of this Loggable object. | Task | |
![]() | looping : Boolean
The flag to determinate if the Action object is looped. | CoreAction | |
![]() | loopIt : Signaler
This signal emit when the notifyLooped method is invoked. | CoreAction | |
![]() | pauseIt : Signaler
This signal emit when the notifyPause method is invoked. | CoreAction | |
![]() | phase : String [read-only]
The current phase of the action. | Task | |
![]() | progressIt : Signaler
This signal emit when the notifyProgress method is invoked. | CoreAction | |
![]() | resumeIt : Signaler
This signal emit when the notifyResumed method is invoked. | CoreAction | |
![]() | running : Boolean [read-only]
Indicates true if the process is in progress. | Task | |
![]() | startIt : Signaler
This signal emit when the notifyStarted method is invoked. | Task | |
![]() | stopIt : Signaler
This signal emit when the notifyStopped method is invoked. | CoreAction | |
![]() | timeoutIt : Signaler
This signal emit when the notifyTimeOut method is invoked. | CoreAction | |
| useSeconds : Boolean
Indicates if the pause use seconds or not. | Pause | ||
| Method | Defined By | ||
|---|---|---|---|
Pause(duration:Number = 0, useSeconds:Boolean = true)
Creates a new Pause instance. | Pause | ||
clone():* [override]
Returns a shallow copy of this object. | Pause | ||
![]() | isLocked():Boolean
Returns true if the object is locked. | Task | |
![]() | lock():void
Locks the object. | Task | |
![]() | notifyChanged():void
Notify when the process is changed. | CoreAction | |
![]() | notifyCleared():void
Notify when the process is cleared. | CoreAction | |
![]() | notifyFinished():void
Notify an ActionEvent when the process is finished. | Task | |
![]() | notifyInfo(info:*):void
Notify a specific information when the process is changed. | CoreAction | |
![]() | notifyLooped():void
Notify when the process is looped. | CoreAction | |
![]() | notifyPaused():void
Notify when the process is paused. | CoreAction | |
![]() | notifyProgress():void
Notify when the process is in progress. | CoreAction | |
![]() | notifyResumed():void
Notify when the process is resumed. | CoreAction | |
![]() | notifyStarted():void
Notify an ActionEvent when the process is started. | Task | |
![]() | notifyStopped():void
Notify when the process is stopped. | CoreAction | |
![]() | notifyTimeOut():void
Notify when the process is out of time. | CoreAction | |
run(... arguments):void [override]
Runs the process. | Pause | ||
start():void
Start the pause process. | Pause | ||
stop():void
Stop the pause process. | Pause | ||
toSource(indent:int = 0):String
Returns the String source representation of the object. | Pause | ||
toString():String
Returns the string representation of this instance. | Pause | ||
![]() | unlock():void
Unlocks the display. | Task | |
| delay | property |
delay:Number [read-only] Indicates the delay of the pause in ms. This property use the duration and useSeconds properties to defined the delay.
public function get delay():NumberSee also
| duration | property |
duration:NumberIndicates the duration of the process.
public function get duration():Number public function set duration(value:Number):void| useSeconds | property |
useSeconds:BooleanIndicates if the pause use seconds or not.
public function get useSeconds():Boolean public function set useSeconds(value:Boolean):void| Pause | () | Constructor |
public function Pause(duration:Number = 0, useSeconds:Boolean = true)Creates a new Pause instance.
Parametersduration:Number (default = 0) — the duration of the pause.
| |
useSeconds:Boolean (default = true) — the flag to indicates if the duration is in second or not.
|
| clone | () | method |
override public function clone():*Returns a shallow copy of this object.
Returns* — a shallow copy of this object.
|
| run | () | method |
override public function run(... arguments):voidRuns the process.
Parameters
... arguments |
| start | () | method |
public function start():voidStart the pause process.
| stop | () | method |
public function stop():voidStop the pause process.
| toSource | () | method |
public function toSource(indent:int = 0):StringReturns the String source representation of the object.
Parameters
indent:int (default = 0) |
String — a string representation the source code of the object.
|
| toString | () | method |
public function toString():StringReturns the string representation of this instance.
ReturnsString — the string representation of this instance.
|