Packageflash.system
Classpublic final class WorkerState
InheritanceWorkerState Inheritance Object

This class represents an enumeration of the possible worker states.



Public Methods
 MethodDefined By
 Inherited
_init():*
[static]
_init
  
[static]
WorkerState
 Inherited
AS3
 Inherited
init():*
[static]
init
 Inherited
AS3
 Inherited
AS3
Protected Methods
 MethodDefined By
 Inherited
[static]
protected
 Inherited
_setPropertyIsEnumerable(o:*, V:String, enumerable:Boolean):void
[static]
protected
Public Constants
 ConstantDefined By
  ABORTED : String = "aborted"
[static] An active worker has been terminated involuntarily by the runtime system due to some error situation without ending in EXCEPTION and without stopping normally.
WorkerState
  EXCEPTION : String = "exception"
[static] The worker has terminated by not catching an exception.
WorkerState
  FAILED : String = "failed"
[static] The worker could not start due to lack of resources or due to some other error condition.
WorkerState
 Inheritedlength : int = 1
[static]
length
  NEW : String = "new"
[static] These value represents a worker state returned value for Worker.state and used by WorkerEvent.
WorkerState
  RUNNING : String = "running"
[static] The worker has begun executing application code and it has not been directed to terminate in any way yet.
WorkerState
  TERMINATED : String = "terminated"
[static] The worker has been stopped programatically by some other worker that invoked the Worker.terminate() method on it.
WorkerState
Method Detail
code()method
public static function code(s:String):int

Parameters

s:String

Returns
int
Constant Detail
ABORTEDConstant
public static const ABORTED:String = "aborted"

An active worker has been terminated involuntarily by the runtime system due to some error situation without ending in EXCEPTION and without stopping normally. For instance, a debugger may be able to abort workers.

EXCEPTIONConstant 
public static const EXCEPTION:String = "exception"

The worker has terminated by not catching an exception.

FAILEDConstant 
public static const FAILED:String = "failed"

The worker could not start due to lack of resources or due to some other error condition.

NEWConstant 
public static const NEW:String = "new"

These value represents a worker state returned value for Worker.state and used by WorkerEvent. An object that represents the new worker has been created, but the worker is dormant; no code is executing on its behalf.

RUNNINGConstant 
public static const RUNNING:String = "running"

The worker has begun executing application code and it has not been directed to terminate in any way yet.

TERMINATEDConstant 
public static const TERMINATED:String = "terminated"

The worker has been stopped programatically by some other worker that invoked the Worker.terminate() method on it.