Class: Do

system.process. Do


new Do()

A simple command to do something.

A simple command to do something. Very usefull to test something in a complex process.

Example
var action = new system.process.Do() ;

action.something = function()
{
    trace( "do something" ) ;
}

var finish = function( action )
{
    var message = "finish: " + action.toString() ;
    trace( message ) ;
};

var start = function( action )
{
    var message = "start: " + action.toString() ;
    trace( message ) ;
};

action.finishIt.connect(finish) ;
action.startIt.connect(start) ;

action.run() ;

Extends

Members


<constant> finishIt :system.signals.Signal

This signal emit when the action is finished.

Type:
Inherited From:

<readonly> phase :string

Indicates the current phase.

Type:
  • string
Inherited From:
See:

<readonly> running :boolean

Indicates action is running.

Type:
  • boolean
Inherited From:

<constant> startIt :system.signals.Signal

This signal emit when the action is started.

Type:
Inherited From:

Methods


clone()

Creates a copy of the object.

Overrides:
Returns:

a shallow copy of this object.


isLocked()

Returns true if the object is locked.

Inherited From:
Implements:
Returns:

true if the object is locked.


lock()

Locks the object.

Inherited From:
Implements:

notifyFinished()

Notify when the process is finished.

Inherited From:

notifyStarted()

Notify when the process is started.

Inherited From:

run()

Run the command.

Inherited From:

something()

Do something in this method (override it).


unlock()

Unlocks the object.

Inherited From:
Implements: