Package | flash.display |
Class | public final class FrameLabel |
Inheritance | FrameLabel EventDispatcher Object |
Language version: | ActionScript 3.0 |
Runtime version: |
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
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 | ||
prototype : Object
[static]
A reference to the prototype object of a class or function object.
| Object |
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 |
frame:int
[read-only]
Language version: | ActionScript 3.0 |
Runtime version: |
The frame number containing the label.
Implementation public function get frame():int
name | property |
name:String
[read-only]
Language version: | ActionScript 3.0 |
Runtime version: |
The name of the label.
Implementation public function get name():String
FrameLabel | () | constructor |
public function FrameLabel(name:String, frame:int)
Language version: | ActionScript 3.0 |
Runtime version: |
Constructor.
Parametersname:String — The label name.
|
|
frame:int — The frame number associated with the label name.
|
frameLabel | event |
flash.events.Event
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:
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. |