パッケージfl.motion
クラスpublic class AnimatorFactoryBase
継承AnimatorFactoryBase Inheritance Object
サブクラス AnimatorFactory, AnimatorFactory3D

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9.0.28.0

AnimatorFactoryBase クラスでは、実行時に 1 つの Motion で複数のターゲットオブジェクトを動的に表示およびトゥイーンする ActionScript ベースのサポートが提供されています。 AnimatorFactoryBase は、AnimatorBase クラスを使用して、1 つの Motion(MotionBase から派生)を複数のトゥイーンインスタンス(ターゲットオブジェクト)に割り当てます。ここで、AnimatorBase クラスは、単一のターゲットトゥイーンオブジェクトを持つ単一の Motion インスタンスに関連付けられます。 AnimatorFactoryBase クラス自体は使用しないでください。 代わりに、サブクラス(AnimatorFactory または AnimatorFactory3D)を使用してください。

関連項目

fl.motion.Animator
fl.motion.AnimatorFactory


パブリックプロパティ
 プロパティ定義元
 Inheritedconstructor : Object
指定されたオブジェクトインスタンスのクラスオブジェクトまたはコンストラクタ関数への参照です。
Object
  motion : MotionBase
[読み取り専用] MotionBase インスタンス。AnimatorFactoryBase インスタンスとそのターゲットオブジェクトが関連付けられています。
AnimatorFactoryBase
 Inheritedprototype : Object
[静的] クラスまたは関数オブジェクトのプロトタイプオブジェクトへの参照です。
Object
  sceneName : String
[書き込み専用]
AnimatorFactoryBase
  transformationPoint : Point
[書き込み専用] 表示オブジェクトを回転または拡大 / 縮小するための基準点です。
AnimatorFactoryBase
  transformationPointZ : int
[書き込み専用]
AnimatorFactoryBase
プロテクトプロパティ
 プロパティ定義元
  _transformationPointZ : int
AnimatorFactoryBase
パブリックメソッド
 メソッド定義元
  
AnimatorFactoryBase クラスのインスタンスを作成します。
AnimatorFactoryBase
  
addTarget(target:DisplayObject, repeatCount:int = 0, autoPlay:Boolean = true, startFrame:int = -1, useCurrentFrame:Boolean = false):AnimatorBase
該当する場合、ターゲットプロパティが DisplayObject に設定された AnimatorBase インスタンスを作成し、返します。これは、targetParent の targetName プロパティで、その Motion プロパティは作成時に AnimatorFactoryBase インスタンスに格納されます。
AnimatorFactoryBase
  
addTargetInfo(targetParent:DisplayObject, targetName:String, repeatCount:int = 0, autoPlay:Boolean = true, startFrame:int = -1, useCurrentFrame:Boolean = false, initialPosition:Array = null):AnimatorBase
親 DisplayObjectContainer を参照し、AnimatorBase インスタンスを作成して返します。このインスタンスの target プロパティは、該当する場合、DisplayObject に設定されます。DisplayObject は targetParent の targetName プロパティで、Motion プロパティは作成時に AnimatorFactoryBase インスタンスに格納されます。
AnimatorFactoryBase
 Inherited
オブジェクトに指定されたプロパティが定義されているかどうかを示します。
Object
 Inherited
Object クラスのインスタンスが、パラメータとして指定されたオブジェクトのプロトタイプチェーン内にあるかどうかを示します。
Object
 Inherited
指定されたプロパティが存在し、列挙できるかどうかを示します。
Object
 Inherited
ループ処理に対するダイナミックプロパティの可用性を設定します。
Object
 Inherited
指定されたオブジェクトのストリング表現を返します。
Object
 Inherited
指定されたオブジェクトのプリミティブな値を返します。
Object
プロパティの詳細
_transformationPointZプロパティ
protected var _transformationPointZ:int

motionプロパティ 
motion:MotionBase  [読み取り専用]

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9.0.28.0

MotionBase インスタンス。AnimatorFactoryBase インスタンスとそのターゲットオブジェクトが関連付けられています。MotionBase インスタンスは、アニメーション化されたプロパティとその値を格納します。



実装
    public function get motion():MotionBase

関連項目

sceneNameプロパティ 
sceneName:String  [書き込み専用]



実装
    public function set sceneName(value:String):void
transformationPointプロパティ 
transformationPoint:Point  [書き込み専用]

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

表示オブジェクトを回転または拡大 / 縮小するための基準点です。transformationPoint プロパティまたは setter は、AnimatorFactory3D サブクラスでオーバーライドされます。3D では、ポイントは 2D の場合のようにパーセンテージではなく、元のオブジェクトの変換ポイントの絶対値になります。



実装
    public function set transformationPoint(value:Point):void
transformationPointZプロパティ 
transformationPointZ:int  [書き込み専用]



実装
    public function set transformationPointZ(value:int):void
コンストラクタの詳細
AnimatorFactoryBase()コンストラクタ
public function AnimatorFactoryBase(motion:MotionBase)

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9.0.28.0

AnimatorFactoryBase クラスのインスタンスを作成します。

パラメータ
motion:MotionBase — 関連付けられた MotionBase インスタンスです。
メソッドの詳細
addTarget()メソッド
public function addTarget(target:DisplayObject, repeatCount:int = 0, autoPlay:Boolean = true, startFrame:int = -1, useCurrentFrame:Boolean = false):AnimatorBase

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9.0.28.0

AnimatorBase インスタンスを作成し、返します。このインスタンスの target プロパティは、該当する場合、DisplayObject に設定されます。これは、targetName プロパティ(targetParent のプロパティ)で、その Motion プロパティは、作成時に AnimatorFactoryBase インスタンスに格納されます。

パラメータ

target:DisplayObject — モーショントゥイーンを使用する表示オブジェクトです。
 
repeatCount:int (default = 0) — アニメーションを再生する回数です。デフォルト値の 0 では、アニメーションが無限にループします。
 
autoPlay:Boolean (default = true) — アニメーションの再生を自動的に開始するかどうかを指定する値(デフォルトは true)です。
 
startFrame:int (default = -1) — 親のタイムラインを基準として、アニメーションが開始するフレームです。親のタイムラインが関連付けられたモーションの継続時間より短い場合、startFrame はこの addTarget 呼び出しが行われてターゲットアニメーションが開始する前に、フレームの数を示します。
 
useCurrentFrame:Boolean (default = false) — true の場合、ターゲットオブジェクトを配置するアニメーションフレームを決定する親の currentFrame プロパティの使用を指定するフラグです。

戻り値
AnimatorBase — 新しい AnimatorBase インスタンスです。

関連項目

addTargetInfo()メソッド 
public function addTargetInfo(targetParent:DisplayObject, targetName:String, repeatCount:int = 0, autoPlay:Boolean = true, startFrame:int = -1, useCurrentFrame:Boolean = false, initialPosition:Array = null):AnimatorBase

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9.0.28.0

DisplayObjectContainer を参照し、AnimatorBase インスタンスを作成して返します。このインスタンスの target プロパティは、該当する場合、DisplayObject に設定されます。これは、targetName プロパティ(targetParent のプロパティ)で、その Motion プロパティは、作成時に AnimatorFactoryBase インスタンスに格納されます。

パラメータ

targetParent:DisplayObject — 親 DisplayObjectContainer です。
 
targetName:String — 親を参照するターゲットインスタンス名です。
 
repeatCount:int (default = 0) — アニメーションを再生する回数です。デフォルト値の 0 では、アニメーションが無限にループします。
 
autoPlay:Boolean (default = true) — アニメーションの再生を自動的に開始するかどうかを指定する値(デフォルトは true)です。
 
startFrame:int (default = -1) — 親のタイムラインを基準として、アニメーションが開始するフレームです。親のタイムラインが関連付けられたモーションの継続時間より短い場合、startFrame はこの addTarget 呼び出しが行われてターゲットアニメーションが開始する前に、フレームの数を示します。
 
useCurrentFrame:Boolean (default = false) — true の場合、ターゲットオブジェクトを配置するアニメーションフレームを決定する親の currentFrame プロパティの使用を指定するフラグです。
 
initialPosition:Array (default = null)

戻り値
AnimatorBase — 新しい AnimatorBase インスタンスです。

関連項目