| Package | blitting.time |
| Class | public class CallLater |
| Inheritance | CallLater Object |
new CallLater(5000, exampleFunction, "Hello", "World!").call();
| Property | Defined By | ||
|---|---|---|---|
| callbackk : Function
The function to call. | CallLater | ||
| delay : int = 1
The delay to make the call, in ms. | CallLater | ||
| params : Array
Parameters to be passed to the function. | CallLater | ||
| scope : *
An object that specifies the value of `this` object within the function body. | CallLater | ||
| timer : Timer
Timer to dispatch time to call. | CallLater | ||
| Method | Defined By | ||
|---|---|---|---|
CallLater(delay:int = 1, scope:* = null, callback:Function = null, ... params)
Constructor
| CallLater | ||
call():void
Call the function. | CallLater | ||
| Method | Defined By | ||
|---|---|---|---|
callHandler():void
Handler to execute the call function. | CallLater | ||
timerHandler(timerEvent:TimerEvent):void | CallLater | ||
| callbackk | property |
protected var callbackk:FunctionThe function to call.
| delay | property |
protected var delay:int = 1The delay to make the call, in ms. If delay is 0, then make the call immediately; otherwise, defaulting to 1ms to execute next frame.
| params | property |
protected var params:ArrayParameters to be passed to the function.
| scope | property |
protected var scope:*An object that specifies the value of `this` object within the function body.
| timer | property |
protected var timer:TimerTimer to dispatch time to call.
| CallLater | () | Constructor |
public function CallLater(delay:int = 1, scope:* = null, callback:Function = null, ... params)Constructor
Parametersdelay:int (default = 1) — The delay in ms to make the call.
| |
scope:* (default = null) — An object that specifies the value of `this` object within the function body.
| |
callback:Function (default = null) — The function to call.
| |
... params — Parameters to be passed to the function.
|
| call | () | method |
public function call():voidCall the function.
| callHandler | () | method |
protected function callHandler():voidHandler to execute the call function.
| timerHandler | () | method |
protected function timerHandler(timerEvent:TimerEvent):void
Parameters
timerEvent:TimerEvent — The type of the event
|