| Package | system.process |
| Class | public dynamic class Initializer |
| Inheritance | Initializer Task Object |
You can override the initialize method of the object or extends the class.
Example :
import system.process.Action ;
import system.process.Initializer ;
var finish:Function = function( action:Action ):void
{
trace( "finish" ) ;
}
var start:Function = function( action:Action ):void
{
trace( "start" ) ;
}
var process:Initializer = new Initializer() ;
process.initialize = function():void
{
trace( "custom init process !" ) ;
}
process.startIt.connect( start ) ;
process.finishIt.connect( finish ) ;
process.run() ;
// start
// "custom init process !"
// finish
| Method | Defined By | ||
|---|---|---|---|
Creates a new Initializer instance. | Initializer | ||
clone():* [override]
Returns a shallow copy of this object. | Initializer | ||
![]() | isLocked():Boolean
Returns true if the object is locked. | Task | |
![]() | lock():void
Locks the object. | Task | |
![]() | notifyFinished():void
Notify an ActionEvent when the process is finished. | Task | |
![]() | notifyStarted():void
Notify an ActionEvent when the process is started. | Task | |
run(... arguments):void [override]
Invoked when the process is run. | Initializer | ||
![]() | unlock():void
Unlocks the display. | Task | |
| Initializer | () | Constructor |
public function Initializer()Creates a new Initializer instance.
| 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):voidInvoked when the process is run.
Parameters
... arguments |