| Package | graphics.transitions |
| Class | public class FrameLoop |
| Inheritance | FrameLoop flash.display.MovieClip |
| Implements | Signaler |
Note: The FLA to compile the FrameLoopAsset symbol embed in this class is in the folder trunk/build/frameloop of the project.
Example :
import graphics.transitions.FrameLoop ;
var cpt:uint = 0 ;
var loop:Function = function():void
{
cpt++ ;
trace( "loop : " + cpt ) ;
if ( cpt == 100 )
{
frame.stop() ;
}
}
var frame:FrameLoop = new FrameLoop() ;
frame.connect( loop ) ;
frame.play() ; // start the frame loop
| Property | Defined By | ||
|---|---|---|---|
| length : uint [read-only]
Indicates the number of receivers connected. | FrameLoop | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new FrameLoop instance. | FrameLoop | ||
connect(receiver:*, priority:uint = 0, autoDisconnect:Boolean = false):Boolean
Connects a Function or a Receiver object. | FrameLoop | ||
connected():Boolean
Returns true if one or more receivers are connected. | FrameLoop | ||
disconnect(receiver:* = null):Boolean
Disconnect the specified object or all objects if the parameter is null. | FrameLoop | ||
emit(... values):void
Emit the specified values to the receivers. | FrameLoop | ||
hasReceiver(receiver:*):Boolean
Returns true if the specified receiver is connected. | FrameLoop | ||
| length | property |
length:uint [read-only] Indicates the number of receivers connected.
public function get length():uint| FrameLoop | () | Constructor |
public function FrameLoop()Creates a new FrameLoop instance.
| connect | () | method |
public function connect(receiver:*, priority:uint = 0, autoDisconnect:Boolean = false):BooleanConnects a Function or a Receiver object.
Parameters
receiver:* — The receiver to connect : a Function reference or a Receiver object.
| |
priority:uint (default = 0) — Determinates the priority level of the receiver.
| |
autoDisconnect:Boolean (default = false) — Apply a disconnect after the first trigger
|
Boolean — true If the receiver is connected with the signal emitter.
|
| connected | () | method |
public function connected():Boolean
Returns true if one or more receivers are connected.
Boolean — true if one or more receivers are connected.
|
| disconnect | () | method |
public function disconnect(receiver:* = null):BooleanDisconnect the specified object or all objects if the parameter is null.
Parameters
receiver:* (default = null) |
Boolean — true if the specified receiver exist and can be unregister.
|
| emit | () | method |
public function emit(... values):voidEmit the specified values to the receivers.
Parameters
... values — All values to emit to the receivers.
|
| hasReceiver | () | method |
public function hasReceiver(receiver:*):Boolean
Returns true if the specified receiver is connected.
Parameters
receiver:* |
Boolean — true if the specified receiver is connected.
|