Class: MovieClip

MovieClip

コンテナとしてレイヤーやタイムラインを管理するクラス、Next2DのMovieClipクラスとして出力されます。
The output is a class that manages layers and timelines as containers and Next2D's MovieClip class.

new instance.MovieClip (object)

NameTypeDescription
objectobject

Extends

  • Instance

Members

actions array

シーン内に設置されたJavaScript情報を配列で返す
Returns an array of JavaScript information placed in the scene

currentFrame number readonly

タイムライン内の再生ヘッドが置かれているフレームの番号を示します。
Indicates the number of the frame in the timeline at which the playback head is placed.

defaultSymbol string readonly

シンボルを指定した時の継承先を返す
Returns the inheritance destination when a symbol is specified.

labels array

タイムラインに設置した全てのラベルを配列で返す
Returns an array of all labels placed on the timeline

layers array

設置された全てのレイヤーを配列で返す
Returns all installed layers as an array

sounds array

シーン内に設置されたサウンド情報を配列で返す
Returns an array of sound information placed in the scene

totalFrame number readonly

MovieClip インスタンス内のフレーム総数です。
The total number of frames in the MovieClip instance.

Methods

addLayer (layer)void

シーンにレイヤーを追加
Adding Layers to a Scene

NameTypeDefaultDescription
layerLayernulloptional
Returns:
TypeDescription
void

addSceneName ()void

シーン移動時に、直前に表示していたシーンをリストに追加する
When moving scenes, add the scene that was displayed immediately before to the list.

Returns:
TypeDescription
void

changeFrame (frame)void

指定フレームに配置されたDisplayObjectを設置
DisplayObject placed in the specified frame

NameTypeDefaultDescription
framenumber1optional
Returns:
TypeDescription
void

clearLayer ()void

全てのLayerオブジェクトを削除
Delete all Layer objects

Returns:
TypeDescription
void

clone ()MovieClip

MovieClipクラスを複製
Duplicate MovieClip class

Returns:
TypeDescription
MovieClip

createInstance (place, range, parent_frame)next2d.display.Sprite

Next2DのDisplayObjectを生成
Generate Next2D DisplayObject

NameTypeDefaultDescription
placeobject
rangeobject
parent_framenumber0optional
Returns:
TypeDescription
next2d.display.Sprite

deleteAction (frame)void

指定フレームのJavaScript情報を削除
Delete JavaScript information for specified frames

NameTypeDescription
framenumber
Returns:
TypeDescription
void

deleteLabel (frame)void

指定フレームに設置したラベル情報を削除
Delete label information placed in the specified frame

NameTypeDescription
framenumber
Returns:
TypeDescription
void

deleteLayer (layer_id)void

指定したIDのLayerオブジェクトを削除
Delete Layer object with specified ID

NameTypeDescription
layer_idnumber
Returns:
TypeDescription
void

deleteSound (frame)void

指定したフレームのサウンド情報を削除
Delete sound information for the specified frame

NameTypeDescription
framenumber
Returns:
TypeDescription
void

getAction (frame)string

指定したフレームのJavaScript情報を返す
Returns JavaScript information for the specified frame

NameTypeDescription
framenumber
Returns:
TypeDescription
string

getBounds (matrix, place, range, parent_frame)object

表示領域(バウンディングボックス)のObjectを返す
Returns the Object of the display area (bounding box)

NameTypeDefaultDescription
matrixarray[1, 0, 0, 1, 0, 0]optional
placeobjectnulloptional
rangeobjectnulloptional
parent_framenumber0optional
Returns:
TypeDescription
object

getLabel (frame)object

指定フレームのラベルを返す
Returns the label of the specified frame

NameTypeDescription
framenumber
Returns:
TypeDescription
object

getLayer (layer_id)Layer

指定したIDのLayerオブジェクトを返す
Returns a Layer object with the specified ID

NameTypeDescription
layer_idnumber
Returns:
TypeDescription
Layer

getSound (frame)array

指定したフレームのサウンド情報を配列で返す
Returns an array of sound information for a given frame

NameTypeDescription
framenumber
Returns:
TypeDescription
array

hasAction (frame)boolean

指定フレームにJavaScript情報の設定の有無を判定
Judges whether JavaScript information is set in the specified frame.

NameTypeDescription
framenumber
Returns:
TypeDescription
boolean

hasSound (frame)boolean

指定したフレームにサウンド情報が設置されているか判定
Determines if sound information is installed in the specified frame

NameTypeDescription
framenumber
Returns:
TypeDescription
boolean

initialize (init)void

初期起動関数
initial invoking function

NameTypeDefaultDescription
initbooleanfalseoptional
Returns:
TypeDescription
void

sceneChange (event)void

指定したシーンへ移動
Go to the specified scene

NameTypeDescription
eventEvent
Returns:
TypeDescription
void

setAction (frame, script)void

指定したフレームにJavaScript情報を登録する
Register JavaScript information in the specified frame

NameTypeDescription
framenumber
scriptstring
Returns:
TypeDescription
void

setLabel (frame, value)void

指定フレームにラベルをセットする
Sets a label on the specified frame

NameTypeDescription
framenumber
valuestring
Returns:
TypeDescription
void

setLayer (layer_id, layer)void

IDを指定してLayerオブジェクトを登録
Register a Layer object by specifying its ID

NameTypeDescription
layer_idnumber
layerLayer
Returns:
TypeDescription
void

setSound (frame, sounds)void

指定したフレームにサウンド情報を登録
Register sound information to the specified frame

NameTypeDescription
framenumber
soundsarray
Returns:
TypeDescription
void

showController (place, name)void

このアイテムが設定されたDisplayObjectが選択された時
内部情報をコントローラーに表示する
When a DisplayObject with this item set is selected,
internal information is displayed on the controller.

NameTypeDefaultDescription
placeobject
namestring""optional
Returns:
TypeDescription
void

stop ()void

シーン終了関数
end-of-scene function

Returns:
TypeDescription
void

toObject ()object

クラス内の変数をObjectにして返す
Return variables in a class as Objects

Returns:
TypeDescription
object

toPublish ()object

書き出し用のObjectを返す
Returns an Object for export

Returns:
TypeDescription
object