Packagecom.desuade.motion.sequences
Classpublic class DelayableFunc
InheritanceDelayableFunc Inheritance flash.events.EventDispatcher

Language Version : ActionScript 3
Since : 29.07.2009
Runtime Versions : AIR 1.0, Flash Player 9.0.0

An object used to create delayed functions, mostly for Sequences.



Public Properties
 PropertyDefined By
  completed : Boolean
[read-only] Returns true if the function completed.
DelayableFunc
  config : Object
[read-only] Gets the config object that was passed in the constructor.
DelayableFunc
  returned : *
If the function returns a value, it is assigned here.
DelayableFunc
Public Methods
 MethodDefined By
  
DelayableFunc(funcObject:Object)
This creates a simple object that runs a function after an optionable delay. Paramaters for the funcObject: func:Function – the function to call (without "()") args:Array – an array of arguments to pass to the function. delay:Number – the amount of seconds to delay the function call
DelayableFunc
  
Runs the function with a delay (if provided).
DelayableFunc
  
stop():void
Stops the DelayableFunc only if it's waiting on a delay.
DelayableFunc
Property Detail
completedproperty
completed:Boolean  [read-only]

Returns true if the function completed.


Implementation
    public function get completed():Boolean
configproperty 
config:Object  [read-only]

Gets the config object that was passed in the constructor. The properties in this object can be modified.


Implementation
    public function get config():Object
returnedproperty 
public var returned:*

If the function returns a value, it is assigned here.

Constructor Detail
DelayableFunc()Constructor
public function DelayableFunc(funcObject:Object)

This creates a simple object that runs a function after an optionable delay.

Paramaters for the funcObject:

Parameters
funcObject:Object
Method Detail
start()method
public function start():DelayableFunc

Runs the function with a delay (if provided).

Returns
DelayableFunc — The DelayableFunc (for chaining)
stop()method 
public function stop():void

Stops the DelayableFunc only if it's waiting on a delay.