Package | flash.display |
Class | public final class FrameLabel |
Inheritance | FrameLabel EventDispatcher Object |
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Lite 4 |
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
MovieClip.currentLabel
MovieClip.currentLabels
MovieClip.currentScene
MovieClip.scenes
MovieClip.gotoAndPlay()
MovieClip.gotoAndStop()
Property | Defined By | ||
---|---|---|---|
constructor : 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 |
Method | Defined By | ||
---|---|---|---|
Constructor. | FrameLabel | ||
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 | ||
Dispatches an event into the event flow. | EventDispatcher | ||
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | EventDispatcher | ||
Indicates whether an object has a specified property defined. | Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Removes a listener from the EventDispatcher object. | EventDispatcher | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object | ||
Checks whether an event listener is registered with this EventDispatcher object or any of
its ancestors for the specified event type. | EventDispatcher |
Event | Summary | Defined By | ||
---|---|---|---|---|
[broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active. | EventDispatcher | |||
[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 |
frame | property |
name | property |
FrameLabel | () | Constructor |
frameLabel | Event |
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.
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:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The FrameLabel object that is actively processing the Event object with an event listener. |
target | Any FrameLabel instance with a listener registered for the frameLabel event. |
Thu Dec 6 2018, 01:12 PM -08:00