ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
com.adobe.gravity.utility.async 

Deferred  - AS3 ADEP Client Component

Packagecom.adobe.gravity.utility.async
Classpublic class Deferred
InheritanceDeferred Inheritance Object

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Utility class to allow a method to be deferred until "the next stack frame".



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  timeLimitInMilliseconds : int = 500
[static] The time limit for processing handlers.
Deferred
Public Methods
 MethodDefined By
  
doLater(deferredFunction:Function):void
[static] Execute a function "soon".
Deferred
 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
Property Detail

timeLimitInMilliseconds

property
public static var timeLimitInMilliseconds:int = 500

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

The time limit for processing handlers. Once the time spent processing handlers in a single frame exceeds this limit, the remaining handlers to be processed will be deferred to the next frame.

Method Detail

doLater

()method
public static function doLater(deferredFunction:Function):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Execute a function "soon". The function will be placed in a queue to be executed when the current stack frame exits (note that other events may prevent the function from being executed on exactly the next stack frame, but it will be executed as soon as possible).

Parameters

deferredFunction:Function — The function to be executed later. The function will be invoked with no parameters.