パッケージfl.motion
クラスpublic class Animator3D
継承Animator3D Inheritance AnimatorBase Inheritance EventDispatcher Inheritance Object

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5

Animator3D クラスは、3 次元モーショントゥイーンの XML 記述を表示オブジェクトに適用します。Animator3D クラスのプロパティおよびメソッドはモーションの再生を制御し、Flash Player はモーションのステータスの変化に応じてイベントをブロードキャストします。モーショントゥイーンの 3 次元コンテンツがない場合、Flash CS4 の「ActionScript としてのモーションのコピー」コマンドでは、Animator クラスが使用されます。3 次元コンテンツに対しては、代わりに Animator3D クラスが使用されます。このクラスは、Animator クラスと同じ基本クラスを共有しますが、3 次元コンテンツ専用です。これにより、アプリケーションプログラミングインターフェイス(API)を使用して ActionScript を編集できるようになります。また、独自のカスタムアニメーションを作成することもできます。

Animator3D クラスのメソッドを関数内で呼び出す場合、Animator3D インスタンスを関数の外部で宣言し、オブジェクトのスコープが関数内に限定されないようにします。関数の内部でインスタンスを宣言すると、関数の最後に、Flash Player の "ガベージコレクション" ルーチンによって Animator インスタンスが削除され、ターゲットオブジェクトのアニメーションが無効になります。

関連項目

モーション XML エレメント


パブリックプロパティ
 プロパティ定義元
 InheritedautoRewind : Boolean = false
アニメーションが終了後に再開するように設定します。
AnimatorBase
 Inheritedconstructor : Object
指定されたオブジェクトインスタンスのクラスオブジェクトまたはコンストラクタ関数への参照です。
Object
 InheritedframeEvent : String
AnimatorBase
  initialPosition : Array
[オーバーライド] [書き込み専用] 表示オブジェクトの x 座標、y 座標、および z 座標を定義します。
Animator3D
 InheritedisPlaying : Boolean
[読み取り専用] アニメーションが現在再生中かどうかを示します。
AnimatorBase
 Inheritedmotion : MotionBase
アニメーションのモーショントゥイーンプロパティを含んでいるオブジェクトです。
AnimatorBase
 InheritedorientToPath : Boolean = false
モーションパスに沿って表示オブジェクトの位置を設定します。
AnimatorBase
 InheritedpositionMatrix : Matrix
全体的な変換をモーションパスに適用する Matrix オブジェクトです。
AnimatorBase
 Inheritedprototype : Object
[静的] クラスまたは関数オブジェクトのプロトタイプオブジェクトへの参照です。
Object
 InheritedrepeatCount : int = 1
アニメーションを繰り返す回数を表します。
AnimatorBase
 InheritedsceneName : String
AnimatorBase
 InheritedspanEnd : int
[読み取り専用] ターゲットのアニメーションが終了する、ターゲットの親のフレームを返します。
AnimatorBase
 InheritedspanStart : int
[読み取り専用] ターゲットのアニメーションが開始する、ターゲットの親のフレームを返します。
AnimatorBase
 Inheritedtarget : DisplayObject
アニメーション中の表示オブジェクトです。
AnimatorBase
 InheritedtargetName : String
ターゲットオブジェクトの名前は、親 DisplayObjectContainer で表示して確認できます。
AnimatorBase
 InheritedtargetParent : DisplayObjectContainer
アニメーションされターゲットとなる親 DisplayObjectContainer。ターゲットオブジェクトが削除され、タイムライン上で置き換えられた後、targetName と組み合わせて使用してターゲットオブジェクトを取得できます。
AnimatorBase
 InheritedtargetState3D : Array
ターゲットオブジェクトの最初の位置です。
AnimatorBase
 Inheritedtime : int
現在のアニメーションの時間を表示および制御するゼロから始まる整数です。
AnimatorBase
 InheritedtransformationPoint : Point
表示オブジェクトを回転または拡大 / 縮小するための基準点です。
AnimatorBase
 InheritedtransformationPointZ : int
AnimatorBase
 InheritedusingCurrentFrame : Boolean
[読み取り専用] 新しいフレームが入力されるたびに、currentFrame プロパティが確認されるかどうか、およびターゲットのアニメーションが親のタイムラインのフレームと同期されているかどうか、または親の現在のフレームにかかわらず、常に進んでいるかどうかを示します。
AnimatorBase
パブリックメソッド
 メソッド定義元
  
Animator3D(xml:XML = null, target:DisplayObject = null)
Animator3D オブジェクトを作成して、XML ベースの 3 次元のモーショントゥイーン記述を表示オブジェクトに適用します。
Animator3D
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
イベントリスナーオブジェクトを EventDispatcher オブジェクトに登録し、リスナーがイベントの通知を受け取るようにします。
EventDispatcher
 Inherited
イベントをイベントフローに送出します。
EventDispatcher
 Inherited
end(reset:Boolean = false, stopEnterFrame:Boolean = true):void
アニメーションを停止し、Flash Player がアニメーションシーケンスの最後のフレームに直ちに移動します。
AnimatorBase
 Inherited
EventDispatcher オブジェクトに、特定のイベントタイプに対して登録されたリスナーがあるかどうかを確認します。
EventDispatcher
 Inherited
オブジェクトに指定されたプロパティが定義されているかどうかを示します。
Object
 Inherited
Object クラスのインスタンスが、パラメータとして指定されたオブジェクトのプロトタイプチェーン内にあるかどうかを示します。
Object
 Inherited
Flash Player をアニメーションシーケンス内の次のフレームに進めます。
AnimatorBase
 Inherited
resume() メソッドを呼び出すまでアニメーションを一時停止します。
AnimatorBase
 Inherited
play(startTime:int = -1, startEnterFrame:Boolean = true):void
アニメーションを開始します。
AnimatorBase
 Inherited
processCurrentFrame(parent:MovieClip, anim:AnimatorBase, startEnterFrame:Boolean, playOnly:Boolean = false):void
[静的]
AnimatorBase
 Inherited
指定されたプロパティが存在し、列挙できるかどうかを示します。
Object
 Inherited
registerButtonState(targetParentBtn:SimpleButton, anim:AnimatorBase, stateFrame:int):void
[静的]
AnimatorBase
 Inherited
registerParentFrameHandler(parent:MovieClip, anim:AnimatorBase, spanStart:int, repeatCount:int = 0, useCurrentFrame:Boolean = false):void
[静的] 与えられた MovieClip の子に対して、その MovieClip と AnimatorBase インスタンスを登録します。
AnimatorBase
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
EventDispatcher オブジェクトからリスナーを削除します。
EventDispatcher
 Inherited
pause() メソッドで一時停止されていたアニメーションを再開します。
AnimatorBase
 Inherited
Flash Player をアニメーションの最初のフレームに設定します。
AnimatorBase
 Inherited
ループ処理に対するダイナミックプロパティの可用性を設定します。
Object
 Inherited
AnimatorBase
 Inherited
アニメーションを停止し、Flash Player がアニメーションシーケンスの最初のフレームに戻ります。
AnimatorBase
 Inherited
指定されたオブジェクトのストリング表現を返します。
Object
 Inherited
useCurrentFrame(enable:Boolean, spanStart:int):void
新しいフレームが入力されるたびに、currentFrame プロパティを設定し、ターゲットのアニメーションを親 MovieClips のタイムラインのフレームと同期するかどうかを設定します。
AnimatorBase
 Inherited
指定されたオブジェクトのプリミティブな値を返します。
Object
 Inherited
指定されたイベントタイプについて、この EventDispatcher オブジェクトまたはその祖先にイベントリスナーが登録されているかどうかを確認します。
EventDispatcher
プロテクトメソッド
 メソッド定義元
  
[静的]
Animator3D
イベント
 イベント 概要 定義元
 Inherited「ブロードキャスト イベント」- Flash Player または AIR アプリケーションがオペレーティングシステムのフォーカスを取得して、アクティブになったときに送出されます。EventDispatcher
 Inherited「ブロードキャストイベント」- Flash Player または AIR アプリケーションがオペレーティングシステムのフォーカスを失って、非アクティブになったときに送出されます。EventDispatcher
 Inheritedモーションの最後に到達したか、stop() メソッドまたは end() メソッドによってモーションが中断されたために、再生が完了したときに送出されます。AnimatorBase
 Inheritedモーションの再生開始時に送出されます。AnimatorBase
 Inheritedモーションが変更され、画面が更新された場合に送出されます。AnimatorBase
 InheritedAnimator の time 値が変化したとき、画面の更新 (motionUpdate イベントなど) 前に送出されます。AnimatorBase
プロパティの詳細
initialPositionプロパティ
initialPosition:Array  [書き込み専用] [オーバーライド]

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5

表示オブジェクトの x 座標、y 座標、および z 座標を定義します。



実装
    public function set initialPosition(value:Array):void

関連項目

コンストラクタの詳細
Animator3D()コンストラクタ
public function Animator3D(xml:XML = null, target:DisplayObject = null)

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5

Animator3D オブジェクトを作成して、XML ベースの 3 次元のモーショントゥイーン記述を表示オブジェクトに適用します。

パラメータ
xml:XML (default = null) — XML ベースのモーショントゥイーン記述を含んでいる E4X オブジェクトです。
 
target:DisplayObject (default = null) — モーショントゥイーンを使用する表示オブジェクトです。

関連項目

メソッドの詳細
convertMatrixToMatrix3D()メソッド
protected static function convertMatrixToMatrix3D(mat2D:Matrix):Matrix3D

パラメータ

mat2D:Matrix

戻り値
Matrix3D