Class: FrameLabel

FrameLabel

FrameLabel オブジェクトには、フレーム番号および対応するラベル名を指定するプロパティがあります。
MovieClip クラスには、currentLabels プロパティがあります。
これは、現在のシーンの FrameLabel オブジェクトの配列です。
MovieClip インスタンスがシーンを使用していない場合、配列には MovieClip インスタンス全体のすべてのフレームラベルが含まれます。

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.

new next2d.display.FrameLabel (name, frame)

NameTypeDescription
namestring
framenumber
Example

Example usage of FrameLabel.

// static BlendMode
const {FrameLabel} = next2d.display;
const frameLabel = new FrameLabel();
frameLabel.addEventListener(Event.FRAME_LABEL, (event) =>
{
    // more...
}

Extends

  • EventDispatcher

Members

next2d.display.FrameLabel.namespace staticconstant

指定されたクラスの空間名を返します。
Returns the space name of the specified class.

Default Value:
  • next2d.display.FrameLabel

namespace constant

指定されたオブジェクトの空間名を返します。
Returns the space name of the specified object.

Default Value:
  • next2d.display.FrameLabel

Methods

next2d.display.FrameLabel.toString ()string static

指定されたクラスのストリングを返します。
Returns the string representation of the specified class.

Default Value:
  • [class FrameLabel]
Returns:
TypeDescription
string

frame ()number

ラベルを含むフレームの番号。
The frame number containing the label.

Returns:
TypeDescription
number

name ()string

ラベルの名前。
The name of the label.

Returns:
TypeDescription
string

toString ()string

指定されたオブジェクトのストリングを返します。
Returns the string representation of the specified object.

Default Value:
  • [object FrameLabel]
Returns:
TypeDescription
string