Package | com.desuade.motion.sequences |
Class | public class DelayableFunc |
Inheritance | DelayableFunc ![]() |
Language Version : | ActionScript 3 |
Since : | 29.07.2009 |
Runtime Versions : | AIR 1.0, Flash Player 9.0.0 |
Property | Defined 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 |
Method | Defined 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 |
completed | property |
completed:Boolean
[read-only] Returns true if the function completed.
public function get completed():Boolean
config | property |
config:Object
[read-only] Gets the config object that was passed in the constructor. The properties in this object can be modified.
public function get config():Object
returned | property |
public var returned:*
If the function returns a value, it is assigned here.
DelayableFunc | () | Constructor |
public function DelayableFunc(funcObject:Object)
This creates a simple object that runs a function after an optionable delay.
Paramaters for the funcObject:
funcObject:Object |
start | () | method |
public function start():DelayableFunc
Runs the function with a delay (if provided).
ReturnsDelayableFunc — The DelayableFunc (for chaining)
|
stop | () | method |
public function stop():void
Stops the DelayableFunc only if it's waiting on a delay.