Packagesystem.process
Classpublic dynamic class Initializer
InheritanceInitializer Inheritance Task Inheritance Object

This Action launch the initialize method of the object but notify an event before (ActionEvent.START) and after(ActionEvent.FINISH) the process.

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
     



Public Properties
 PropertyDefined By
 InheritedfinishIt : Signaler
This signal emit when the notifyFinished method is invoked.
Task
 Inheritedlogger : Logger
Determinates the internal Logger reference of this Loggable object.
Task
 Inheritedphase : String
[read-only] The current phase of the action.
Task
 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
Public Methods
 MethodDefined By
  
Creates a new Initializer instance.
Initializer
  
clone():*
[override] Returns a shallow copy of this object.
Initializer
 Inherited
isLocked():Boolean
Returns true if the object is locked.
Task
 Inherited
lock():void
Locks the object.
Task
 Inherited
Notify an ActionEvent when the process is finished.
Task
 Inherited
Notify an ActionEvent when the process is started.
Task
  
run(... arguments):void
[override] Invoked when the process is run.
Initializer
 Inherited
unlock():void
Unlocks the display.
Task
Protected Methods
 MethodDefined By
 Inherited
setRunning(b:Boolean):void
Changes the running property value.
Task
Constructor Detail
Initializer()Constructor
public function Initializer()

Creates a new Initializer instance.

Method Detail
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):void

Invoked when the process is run.

Parameters

... arguments