| Package | org.as3lib.kitchensync.action |
| Class | public class KSAsynchronousFunction |
| Inheritance | KSAsynchronousFunction KSFunction AbstractAction flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
![]() | _args : Array
Arguments that will be passed into the function.
| KSFunction | |
![]() | _autoDelete : Boolean | AbstractAction | |
| _completeEventDispatcher : IEventDispatcher | KSAsynchronousFunction | ||
| _completeEventType : String | KSAsynchronousFunction | ||
![]() | _delay : int = 0 | AbstractAction | |
![]() | _duration : int = 0 | AbstractAction | |
![]() | _func : Function | KSFunction | |
![]() | _name : String | AbstractAction | |
![]() | _paused : Boolean = false | AbstractAction | |
![]() | _pauseTime : Timestamp | AbstractAction | |
![]() | _result : * | KSFunction | |
![]() | _running : Boolean = false | AbstractAction | |
![]() | _startTime : Timestamp | AbstractAction | |
![]() | _sync : Boolean | AbstractAction | |
| Method | Defined by | ||
|---|---|---|---|
|
KSAsynchronousFunction(delay:*, func:Function, completeEventDispatcher:IEventDispatcher, completeEventType:String, ... args)
| KSAsynchronousFunction | ||
![]() |
addEventTrigger(dispatcher:IEventDispatcher, eventType:String):void
Causes the action to start playing when a specified event is fired.
| AbstractAction | |
![]() |
addTrigger(trigger:AbstractAction):void
Causes the action to start playing when another event completes.
| AbstractAction | |
| KSAsynchronousFunction | |||
![]() |
invoke():*
Calls the function with the arguments specified.
| KSFunction | |
|
kill():void
| KSAsynchronousFunction | ||
![]() |
pause():void
Causes the action to be paused.
| AbstractAction | |
![]() |
register():void
Adds the action as a listener to the Synchronizer's update event.
| AbstractAction | |
![]() |
removeEventTrigger(dispatcher:IEventDispatcher, eventType:String):void
Removes an event trigger added by addEventTrigger().
| AbstractAction | |
![]() |
removeTrigger(trigger:AbstractAction):void
Removes a trigger added with addTrigger().
| AbstractAction | |
![]() |
Starts the timer for this action.
| AbstractAction | |
![]() |
stop():void
Stops the action from running and resets the timer.
| AbstractAction | |
![]() |
unpause():void
Resumes the action at the point where it was paused.
| AbstractAction | |
![]() |
unregister():void
Removes the action as a listener to the Synchronizer's update event.
| AbstractAction | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
complete():void
Call this when the action has completed.
| AbstractAction | |
![]() |
forceUpdate():void
Foreces the onUpdate() method to fire without being triggered by Synchronizer.
| AbstractAction | |
|
onFunctionComplete(event:Event):void
Event listener that is called when the asyncronous function is completed.
| KSAsynchronousFunction | ||
![]() |
onTrigger(event:Event):void
Handler that starts playing the action that is called by a trigger event.
| AbstractAction | |
|
onUpdate(event:KitchenSyncEvent):void
Executes the function when the delay has elapsed.
| KSAsynchronousFunction | ||
| _completeEventDispatcher | property |
protected var _completeEventDispatcher:IEventDispatcher
| _completeEventType | property |
protected var _completeEventType:String
| KSAsynchronousFunction | () | constructor |
public function KSAsynchronousFunction(delay:*, func:Function, completeEventDispatcher:IEventDispatcher, completeEventType:String, ... args)Parameters
delay:* |
|
func:Function |
|
completeEventDispatcher:IEventDispatcher |
|
completeEventType:String |
|
... args |
| clone | () | method |
| kill | () | method |
public override function kill():void
| onFunctionComplete | () | method |
protected function onFunctionComplete(event:Event):voidEvent listener that is called when the asyncronous function is completed.
Parametersevent:Event |
| onUpdate | () | method |
protected override function onUpdate(event:KitchenSyncEvent):voidExecutes the function when the delay has elapsed.
Parametersevent:KitchenSyncEvent |