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

Language version: ActionScript 3.0
Runtime version: 

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.

See also

Scene.labels
MovieClip.currentLabel
MovieClip.currentLabels
MovieClip.currentScene
MovieClip.scenes
MovieClip.gotoAndPlay()
MovieClip.gotoAndStop()


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
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
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
 EventSummaryDefined 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
frameproperty
frame:int  [read-only]

Language version: ActionScript 3.0
Runtime version: 

The frame number containing the label.

Implementation
    public function get frame():int
nameproperty 
name:String  [read-only]

Language version: ActionScript 3.0
Runtime version: 

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 version: 

Constructor.

Parameters
name:String — The label name.
 
frame:int — The frame number associated with the label name.
Event detail
frameLabelevent 
Event object type: flash.events.Event
Event.type property = flash.events.Event.FRAME_LABEL

Language version: ActionScript 3.0
Runtime version: 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.