Packageshell.async
Interfacepublic interface EventLoop
Implementors CoreEventLoop

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Defines what the main event loop needs to implements.



Public Properties
 PropertyDefined By
  elapsed : uint
[read-only]
EventLoop
  frame : uint
[read-only]
EventLoop
  AVM-only frequency : uint
The Event loop frequency.
EventLoop
  running : Boolean
Indicates if the event loop is running
EventLoop
  started : uint
[read-only]
EventLoop
  AVM-only timerPending : Boolean
[read-only] Indicates if timers are pending or not.
EventLoop
  AVM-only timers : Array
Access the global Timers.
EventLoop
Public Methods
 MethodDefined By
  
AVM-only handleTimers():void
Process timers.
EventLoop
  
EventLoop
  
AVM-only start():void
Starts the main event loop.
EventLoop
  
AVM-only stop():void
Stops the main event loop.
EventLoop
Property Detail
elapsedproperty
elapsed:uint  [read-only]


Implementation
    public function get elapsed():uint
frameproperty 
frame:uint  [read-only]


Implementation
    public function get frame():uint
AVM-only frequencyproperty 
frequency:uint

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

The Event loop frequency.

Default is 60.


Implementation
    public function get frequency():uint
    public function set frequency(value:uint):void
runningproperty 
running:Boolean

Indicates if the event loop is running


Implementation
    public function get running():Boolean
    public function set running(value:Boolean):void
startedproperty 
started:uint  [read-only]


Implementation
    public function get started():uint
AVM-only timerPendingproperty 
timerPending:Boolean  [read-only]

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Indicates if timers are pending or not.


Implementation
    public function get timerPending():Boolean
AVM-only timersproperty 
timers:Array

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Access the global Timers.


Implementation
    public function get timers():Array
    public function set timers(value:Array):void
Method Detail
AVM-only handleTimers()method
public function handleTimers():void

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Process timers.

setCallback()method 
public function setCallback(f:Function):void

Parameters

f:Function

AVM-only start()method 
public function start():void

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Starts the main event loop.

AVM-only stop()method 
public function stop():void

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Stops the main event loop.