| パッケージ | fl.transitions |
| クラス | public class Transition |
| 継承 | Transition EventDispatcher Object |
| サブクラス | Blinds, Fade, Fly, Iris, Photo, PixelDissolve, Rotate, Squeeze, Wipe, Zoom |
| 言語バージョン: | ActionScript 3.0 |
| 製品バージョン: | Flash CS3 |
| ランタイムバージョン: | Flash Player 9, AIR 1.0 |
関連する API エレメント
パブリックプロパティ
| プロパティ | 定義元 | ||
|---|---|---|---|
![]() | constructor : Object
指定されたオブジェクトインスタンスのクラスオブジェクトまたはコンストラクター関数への参照です。 | Object | |
| direction : Number
Tween インスタンスのイージングの方向を決定します。 | Transition | ||
| duration : Number
Tween インスタンスの継続時間を決定します。 | Transition | ||
| easing : Function
アニメーションのトゥイーン効果を設定します。 | Transition | ||
パブリックメソッド
パブリック定数
| 定数 | 定義元 | ||
|---|---|---|---|
| IN : uint = 0 [静的]
イージングのタイプを指定する direction プロパティの定数。 | Transition | ||
| OUT : uint = 1 [静的]
イージングのタイプを指定する direction プロパティの定数。 | Transition | ||
プロパティの詳細
direction | プロパティ |
duration | プロパティ |
easing | プロパティ |
定数の詳細
IN | 定数 |
public static const IN:uint = 0| 言語バージョン: | ActionScript 3.0 |
| 製品バージョン: | Flash CS3 |
| ランタイムバージョン: | Flash Player 9, AIR 1.0 |
イージングのタイプを決定する direction プロパティの定数です。
OUT | 定数 |
public static const OUT:uint = 1| 言語バージョン: | ActionScript 3.0 |
| 製品バージョン: | Flash CS3 |
| ランタイムバージョン: | Flash Player 9, AIR 1.0 |
イージングのタイプを指定する direction プロパティの定数。
例 この例の使用方法
Transition_example.as
トランジション効果が完了するタイミングを把握するには、transitionInDone イベントまたは transitionOutDone イベントを監視します。どちらのイベントを監視するかは、トランジションの direction プロパティの設定(Transition.IN または Transition.OUT)によって異なります。ActionScriptExamples.com で作成された例。
//
// Requires:
// - MovieClip on the Stage with an instance name of "logo".
// - Button component on the Stage with an instance name of "button".
//
import fl.transitions.*;
import fl.transitions.easing.*;
var blindsObj:Object = {type:Blinds,
direction:Transition.IN,
duration:4,
easing:Strong.easeOut,
numStrips:10,
dimension:1};
button.label = "Play";
button.addEventListener(MouseEvent.CLICK, button_click);
function button_click(evt:MouseEvent):void {
button.enabled = false;
logo.alpha = 1.0; // 100% (reset alpha)
var transition:Transition = TransitionManager.start(logo, blindsObj);
transition.addEventListener("transitionInDone", transition_transitionInDone);
}
function transition_transitionInDone(evt:Event):void {
logo.alpha = 0.5; // 50%
button.enabled = true;
}
Tue Jun 12 2018, 10:34 AM Z
継承されるパブリックプロパティを隠す
継承されるパブリックプロパティを表示