パッケージfl.motion
クラスpublic class FunctionEase
継承FunctionEase Inheritance Object
実装 ITween

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9.0.28.0

FunctionEase クラスを使用すると、fl.motion フレームワークで、他の補間 (SimpleEase や CustomEase など) の代わりに、カスタム補間関数を使用できます。fl.motion フレームワークでは、fl.motion.easing パッケージに、いくつかのイージング関数が存在します。

例を表示

関連項目

モーション XML エレメント
fl.motion.easing


パブリック プロパティ
 プロパティ定義元
 Inheritedconstructor : Object
特定のオブジェクトインスタンスのクラスオブジェクトまたはコンストラクタ関数への参照です。
Object
  easingFunction : Function = null
(t, b, c, d) という fl.motion.easing クラスのメソッドと同様のシグネチャを持つ関数への参照。
FunctionEase
  functionName : String
fl.motion.easing.Bounce.easeOut() などのイージング関数の完全修飾名。
FunctionEase
  parameters : Array = null
補足的なパラメータとしてイージング関数に渡される値の配列 (オプション)。
FunctionEase
 Inheritedprototype : Object
[static] クラスまたは関数オブジェクトのプロトタイプオブジェクトへの参照です。
Object
  target : String
対象となるアニメーションプロパティの名前。
FunctionEase
パブリック メソッド
 メソッド定義元
  
FunctionEase(xml:XML = null)
FunctionEase インスタンスのコンストラクタ。
FunctionEase
  
getValue(time:Number, begin:Number, change:Number, duration:Number):Number
数値型のアニメーションプロパティについて、指定されたイージング関数を使って補間した値を計算します。
FunctionEase
 Inherited
オブジェクトに指定されたプロパティが定義されているかどうかを示します。
Object
 Inherited
Object クラスのインスタンスが、パラメータとして指定されたオブジェクトのプロトタイプチェーン内にあるかどうかを示します。
Object
 Inherited
指定されたプロパティが存在し列挙できるかどうかを示します。
Object
 Inherited
ループ処理に対するダイナミックプロパティの可用性を設定します。
Object
 Inherited
指定されたオブジェクトのストリング表現を返します。
Object
 Inherited
指定されたオブジェクトのプリミティブな値を返します。
Object
プロパティの詳細
easingFunctionプロパティ
public var easingFunction:Function = null

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9.0.28.0

fl.motion.easing クラスのメソッドと同様の (t, b, c, d) というシグネチャを持つ関数への参照。

関連項目

functionNameプロパティ 
functionName:String  [read-write]

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9.0.28.0

イージング関数の完全修飾名 (fl.motion.easing.Bounce.easeOut() など)。この関数は、クラス (Bounce、Cubic、Elastic など) のメソッドであることが必要です。Flash Player がクラスを特定できなかった場合、例外がスローされます。


実装
    public function get functionName():String
    public function set functionName(value:String):void

関連項目

parametersプロパティ 
public var parameters:Array = null

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9.0.28.0

補足的なパラメータとしてイージング関数に渡される値の配列 (オプション)。

targetプロパティ 
target:String  [read-write]

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9.0.28.0

対象となるアニメーションプロパティの名前。


実装
    public function get target():String
    public function set target(value:String):void

関連項目

コンストラクタの詳細
FunctionEase()コンストラクタ
public function FunctionEase(xml:XML = null)

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9.0.28.0

FunctionEase インスタンスのコンストラクタ。

パラメータ
xml:XML (default = null) — E4X XML インスタンス (オプション)。

関連項目

メソッドの詳細
getValue()メソッド
public function getValue(time:Number, begin:Number, change:Number, duration:Number):Number

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9.0.28.0

数値型のアニメーションプロパティについて、指定されたイージング関数を使って補間した値を計算します。parameters の配列があらかじめ設定されていた場合、time、begin、change、duration の値に加え、これらの値がイージング関数に渡されます。

パラメータ

time:Number0 から duration までの時間値。単位は自由に選択できますが (フレーム、秒、ミリ秒など)、duration の単位と合わせる必要があります。
 
begin:Number — トゥイーンの開始時、つまり、時間値が 0 のときのアニメーションプロパティの値。
 
change:Number — トゥイーン処理におけるアニメーションプロパティの値の変化。正の値だけでなく、負の値を使用することもできます。たとえば、オブジェクトを 90 度から 60 度まで回転させる場合、change は -30 になります。
 
duration:Number — トゥイーンの時間の長さ。0 より大きくなければなりません。単位は自由に選択できますが (フレーム、秒、ミリ秒など)、time の単位と合わせる必要があります。

戻り値
Number — 指定された時点における補間値。
例の使用法
FunctionEaseExample.as

この例では、カスタム関数のイージングとして、fl.motion.easing パッケージの Back エフェクトが使用されています。
import fl.motion.Animator;
//// These two lines must be added to use <FunctionEase>
import fl.motion.easing.*; // import the easing classes
fl.motion.easing.Back; // add a reference to every easing class you want to use
////
var mc2_xml:XML = <Motion duration="30" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
    <source>
        <Source frameRate="30" x="85.05" y="90.05" scaleX="0.999" scaleY="0.999" rotation="0" elementType="movie clip" instanceName="mc2" symbolName="BoxSymbol" linkageID="Box" class="Box">
            <dimensions>
                <geom:Rectangle left="-39" top="-52" width="77" height="97"/>
            </dimensions>
            <transformationPoint>
                <geom:Point x="0.5019480519480519" y="0.5010309278350515"/>
            </transformationPoint>
        </Source>
    </source>

    <Keyframe index="0">
        <tweens>
            <FunctionEase functionName="fl.motion.easing.Back.easeInOut"/>
        </tweens>
    </Keyframe>

    <Keyframe index="29" x="330" y="0"/>
</Motion>;

var mc2_animator:Animator = new Animator(mc2_xml, mc2);
mc2_animator.play();




 

このページに新しいコメントが追加された場合に、電子メールでの通知を希望する。 | コメントレポート

現在のページ: http://livedocs.adobe.com/flash/9.0_jp/ActionScriptLangRefV3/fl/motion/FunctionEase.html