Packageflash.system
Classpublic final class WorkerState
InheritanceWorkerState Inheritance Object

Language version: ActionScript 3.0
Runtime version: AIR 3.4

This class defines constants that represent the possible values of the Worker class's state property. These values are the states in a Worker object's lifecycle.

See also

Worker class
Worker.state property


Public Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined by
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined by
  NEW : String = "new"
[static] This state indicates that an object that represents the new worker has been created, but the worker is not executing code.
WorkerState
  RUNNING : String = "running"
[static] This state indicates that the worker has begun executing application code and it has not been instructed to stop execution.
WorkerState
  TERMINATED : String = "terminated"
[static] This state indicates that the worker has been stopped by code in another worker calling this Worker object's terminate() method.
WorkerState
Constant detail
NEWconstant
public static const NEW:String = "new"

Language version: ActionScript 3.0
Runtime version: AIR 3.4

This state indicates that an object that represents the new worker has been created, but the worker is not executing code.

See also

RUNNINGconstant 
public static const RUNNING:String = "running"

Language version: ActionScript 3.0
Runtime version: AIR 3.4

This state indicates that the worker has begun executing application code and it has not been instructed to stop execution.

See also

TERMINATEDconstant 
public static const TERMINATED:String = "terminated"

Language version: ActionScript 3.0
Runtime version: AIR 3.4

This state indicates that the worker has been stopped by code in another worker calling this Worker object's terminate() method.

See also