Packagegraphics.transitions
Classpublic class FrameLoop
InheritanceFrameLoop Inheritance flash.display.MovieClip
Implements Signaler

This MovieClip contains two frames and emit a signal when is playing.

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
     



Public Properties
 PropertyDefined By
  length : uint
[read-only] Indicates the number of receivers connected.
FrameLoop
Public Methods
 MethodDefined 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
Property Detail
lengthproperty
length:uint  [read-only]

Indicates the number of receivers connected.


Implementation
    public function get length():uint
Constructor Detail
FrameLoop()Constructor
public function FrameLoop()

Creates a new FrameLoop instance.

Method Detail
connect()method
public function connect(receiver:*, priority:uint = 0, autoDisconnect:Boolean = false):Boolean

Connects 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

Returns
Booleantrue If the receiver is connected with the signal emitter.
connected()method 
public function connected():Boolean

Returns true if one or more receivers are connected.

Returns
Booleantrue if one or more receivers are connected.
disconnect()method 
public function disconnect(receiver:* = null):Boolean

Disconnect the specified object or all objects if the parameter is null.

Parameters

receiver:* (default = null)

Returns
Booleantrue if the specified receiver exist and can be unregister.
emit()method 
public function emit(... values):void

Emit 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:*

Returns
Booleantrue if the specified receiver is connected.