ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
flash.display 

FrameLabel  - AS3

Packageflash.display
Classpublic final class FrameLabel
InheritanceFrameLabel Inheritance EventDispatcher Inheritance Object

Language Version: ActionScript 3.0
Runtime Versions: AIR 1.0, Flash Player 9, Flash Lite 4

The FrameLabel object contains properties that specify a frame number and the corresponding label name.

The MovieClip class includes a currentLabels property, which is an Array of FrameLabel objects for the current scene. If the MovieClip instance does not use scenes, the Array includes all frame labels from the entire MovieClip instance.

The Scene class includes a labels property, which is an Array of FrameLabel objects for the scene.

Related API Elements



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  frame : int
[read-only] The frame number containing the label.
FrameLabel
  name : String
[read-only] The name of the label.
FrameLabel
Public Methods
 MethodDefined By
  
FrameLabel(name:String, frame:int)
Constructor.
FrameLabel
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
EventDispatcher
 Inherited
Dispatches an event into the event flow.
EventDispatcher
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
EventDispatcher
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
EventDispatcher
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
EventDispatcher
Events
 Event Summary Defined By
 Inherited[broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active.EventDispatcher
 Inherited[broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive.EventDispatcher
  Dispatched when the playhead enter a new frame, and the frame has a FrameLabel object defined with a listener registered for the event.FrameLabel
Property Detail

frame

property
frame:int  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: AIR 1.0, Flash Player 9, Flash Lite 4

The frame number containing the label.



Implementation
    public function get frame():int

name

property 
name:String  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: AIR 1.0, Flash Player 9, Flash Lite 4

The name of the label.



Implementation
    public function get name():String
Constructor Detail

FrameLabel

()Constructor
public function FrameLabel(name:String, frame:int)

Language Version: ActionScript 3.0
Runtime Versions: AIR 1.0, Flash Player 9, Flash Lite 4

Constructor.

Parameters
name:String — The label name.
 
frame:int — The frame number associated with the label name.
Event Detail

frameLabel

Event
Event Object Type: flash.events.Event
property Event.type = flash.events.Event.FRAME_LABEL

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 11.3, AIR 3.3

Dispatched when the playhead enter a new frame, and the frame has a FrameLabel object defined with a listener registered for the event. If the playhead is not moving, or if there is only one frame, this event is dispatched continuously based on the frame rate.

The frameLabel event is dispatched after the frameConstructed event.

The Event.FRAME_LABEL constant defines the value of the type property of an frameLabel event object.

Note: This event has neither a "capture phase" nor a "bubble phase", which means that event listeners must be added directly to FrameLabel objects.

This event has the following properties:

PropertyValue
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
currentTargetThe FrameLabel object that is actively processing the Event object with an event listener.
targetAny FrameLabel instance with a listener registered for the frameLabel event.