Packagejp.nium.utils
Classpublic final class MovieClipUtil
InheritanceMovieClipUtil Inheritance Object

MovieClipUtil クラスは、MovieClip 操作のためのユーティリティクラスです。 MovieClipUtil クラスを直接インスタンス化することはできません。 new MovieClipUtil() コンストラクタを呼び出すと、ArgumentError 例外がスローされます。 The MovieClipUtil class is an utility class for MovieClip operation. MovieClipUtil class can not instanciate directly. When call the new MovieClipUtil() constructor, the ArgumentError exception will be thrown.



Public Methods
 MethodDefined By
  
doLater(scope:*, callBack:Function, ... args):void
[static] 指定された関数を 1 フレーム経過後に実行します。 Execute the specified function, 1 frame later.
MovieClipUtil
  
frameToLabels(movie:MovieClip, frame:int):Array
[static] MovieClip インスタンスの指定されたフレーム番号からフレームラベルを格納した配列を取得します。 Get the array which contains the frame label that specified by frame number of the MovieClip instance.
MovieClipUtil
  
getMarginFrames(movie:MovieClip, frame1:*, frame2:*):int
[static] 指定された 2 点間のフレーム差を取得します。 Get the frame difference of specified two points.
MovieClipUtil
  
hasFrame(movie:MovieClip, frame:*):Boolean
[static] 指定したフレームが存在しているかどうかを返します。 Returns if the specified frame exists.
MovieClipUtil
  
labelToFrames(movie:MovieClip, labelName:String):Array
[static] MovieClip インスタンスの指定されたフレームラベルからフレーム番号を格納した配列を取得します。 Get the array which contains the frame number that specified by frame label of the MovieClip instance.
MovieClipUtil
  
playheadWithinFrames(movie:MovieClip, frame1:*, frame2:*):Boolean
[static] 指定されて 2 点間に再生ヘッドが存在しているかどうかを取得します。 Returns if the playback head exists between the specified two points.
MovieClipUtil
Method Detail
doLater()method
public static function doLater(scope:*, callBack:Function, ... args):void

指定された関数を 1 フレーム経過後に実行します。 Execute the specified function, 1 frame later.

Parameters

scope:*関数が実行される際のスコープです。 The scope when the function executes.
 
callBack:Function実行したい関数です。 The function to execute.
 
... args関数の実行時の引数です。 The argument of the function when executes.


Example
         
frameToLabels()method 
public static function frameToLabels(movie:MovieClip, frame:int):Array

MovieClip インスタンスの指定されたフレーム番号からフレームラベルを格納した配列を取得します。 Get the array which contains the frame label that specified by frame number of the MovieClip instance.

Parameters

movie:MovieClipフレームラベルを取得したい MovieClip インスタンスです。 The MovieClip instance to get the frame number.
 
frame:intフレーム番号です。 The frame number.

Returns
Arrayフレームラベルです。 The frame label.

Example
         
getMarginFrames()method 
public static function getMarginFrames(movie:MovieClip, frame1:*, frame2:*):int

指定された 2 点間のフレーム差を取得します。 Get the frame difference of specified two points.

Parameters

movie:MovieClip対象の MovieClip インスタンスです。 The MovieClip instance to process.
 
frame1:*最初のフレーム位置です。 The position of the first frame.
 
frame2:*2 番目のフレーム位置です。 The position of the second frame.

Returns
intフレーム差です。 The frame difference.

Example
         
hasFrame()method 
public static function hasFrame(movie:MovieClip, frame:*):Boolean

指定したフレームが存在しているかどうかを返します。 Returns if the specified frame exists.

Parameters

movie:MovieClip対象の MovieClip インスタンスです。 The MovieClip instance to process.
 
frame:*存在を確認するフレームです。 The frame to check if exists.

Returns
Boolean存在していれば true 、なければ false です。 Returns true if exists, otherwise return false.

Example
         
labelToFrames()method 
public static function labelToFrames(movie:MovieClip, labelName:String):Array

MovieClip インスタンスの指定されたフレームラベルからフレーム番号を格納した配列を取得します。 Get the array which contains the frame number that specified by frame label of the MovieClip instance.

Parameters

movie:MovieClipフレーム番号を取得したい MovieClip インスタンスです。 The MovieClip instance to get the frame number.
 
labelName:Stringフレームラベルです。 The frame label.

Returns
Arrayフレーム番号です。 The frame number.

Example
         
playheadWithinFrames()method 
public static function playheadWithinFrames(movie:MovieClip, frame1:*, frame2:*):Boolean

指定されて 2 点間に再生ヘッドが存在しているかどうかを取得します。 Returns if the playback head exists between the specified two points.

Parameters

movie:MovieClip対象の MovieClip インスタンスです。 The MovieClip instance to process.
 
frame1:*最初のフレーム位置です。 The position of the first frame.
 
frame2:*2 番目のフレーム位置です。 The position of the second frame.

Returns
Boolean存在していれば true 、なければ false です。 Returns true if exists, otherwise return false.

Example