| 前のページ | 次のページ | フレーム表示 | フレームなし |
| 概要: フィールド | プロパティ | コンストラクタ | メソッド | 詳細: フィールド | プロパティ | コンストラクタ | メソッド |
Object | +--com.mosesSupposes.fuse.ZigoEngine
Field Summary | |
| public static | AUTOSTOP: Boolean |
| (Legacy) Option to stop all tweening props in target as a new tween is added. | |
| public static | DURATION: Number |
| Default tween duration if unspecified. | |
| public static | EASING: Object |
| Default easing if unspecified. | |
| public static | OUTPUT_LEVEL: Number |
| Controls how much feedback the engine outputs, helpful for debugging. | |
| public static | ROUND_RESULTS: Boolean |
| If set true the engine always rounds its math (helpful with pixelfonts). | |
| public static | SKIP_LEVEL: Number |
| (Advanced) Sets default engine behavior for situations where tweens fail to affect a visible change or have no duration. | |
| public static | TIME_MULTIPLIER: Number |
| Debug feature: Skips, speeds up, or slows all tweens globally. All time values in ZigoEngine and Fuse are multiplied by this number. | |
| public static | VERSION: String |
| Enables kit version to be retrieved at runtime or when reviewing a decompiled swf. | |
Method Summary | |
| public static | addListener ( handler: Object ): Void |
| (Advanced) Use this method to add a listener for "onTweenInterrupt" event, which is broadcast directly by the engine. | |
| public static | deinitialize ( target: Object ): Void |
| (Advanced) Clears targets from being used with the engine. | |
| public static | doShortcut ( targets: Object, methodName: String ): String |
| An alternative to doTween that accepts Shortcut syntax. Requires registration of the Shortcuts class. | |
| public static | doTween ( targets: Object, props: Object, endvals: Object, seconds: Number, ease: Object, delay: Number, callback: Object ): String |
| Generates and immediately begins one or more property-tweens running on one or more targets. | |
| public static | ffTween ( targs: Object, props: Object, suppressEndEvents: Boolean ): Void |
| Fast-forwarding a tween ends it and removes it from the engine. | |
| public static | getColorKeysObj ( targOrTransObj: Object ): Object |
| (General) Provides readings by keyword for a target object or Flash7-style color-transform object. | |
| public static | getColorTransObj ( type: String, amt: Number, rgb: Object ): Object |
| (General) Generates a generic Flash7-style color-transform object with props like ra, etc., by keyword. | |
| public static | getControllerDepth ( ): Number |
| Depth of the ZigoEnginePulse clip. | |
| public static | getTweens ( targ: Object ): Number |
| Returns the number of tweens active in a target object. | |
| public static | getUpdateInterval ( ): Number |
| public static | initialize ( target: Object ): Void |
| (Advanced) Prepares targets for use with engine. | |
| public static | isPlaying ( ): Boolean |
| Returns true if the engine contains tweens and is running updates on a pulse | |
| public static | isTweening ( targ: Object, prop: String ): Boolean |
| Test if a target and optionally a specific property is being handled by the engine. | |
| public static | isTweenLocked ( targ: Object ): Boolean |
| Locks tweens and prevents from running until tween is unlocked. | |
| public static | isTweenPaused ( targ: Object, prop: String ): Boolean |
| Test whether any or a specific property is paused in a target object | |
| public static | lockTween ( targ: Object, setLocked: Boolean ): Void |
| Locks a target to prevent tweens from running until target is unlocked. | |
| public static | pauseTween ( targs: Object, props: Object ): Void |
| Pause one or more tweens | |
| public static | register ( classReference: Function ): Void |
| An optional setup command that registers additional classes for use with the ZigoEngine. | |
| public static | removeListener ( handler: Object ): Void |
| Remove a listener for onTweenInterrupt event | |
| public static | removeTween ( targs: Object, props: Object ): Void |
| Remove specific or all tweening properties from specific or all tweening targets in engine. | |
| public static | resumeTween ( targs: Object, props: Object ): Void |
| Unpause one or more tweens. | |
| public static | rewTween ( targs: Object, props: Object, pauseFlag: Boolean, suppressStartEvents: Boolean ): Void |
| Rewinds and either pauses or restarts one or more tweens | |
| public static | setColorByKey ( targetObj: Object, type: String, amt: Number, rgb: Object ): Void |
| (General) Color-transforms a target by keyword. | |
| public static | setControllerDepth ( depth: Number ): Void |
| Creates a clip in the _root timeline called "ZigoEnginePulse" or sets its depth | |
| public static | setUpdateInterval ( time: Number ): Void |
| When set, the engine will run on a setInterval pulse instead of a frame pulse. | |
| public static | simpleSetup ( shortcutsClass: Function ): Void |
An alternative setup command that extends prototypes with shortcuts like alphaTo. | |
| public static | skipTweenTo ( seconds: Number, targs: Object, props: Object ): Void |
| Jumps a tween to a specific point in its duration. | |
| public static | unpauseTween ( targs: Object, props: Object ): Void |
| Legacy - see resumeTween | |
| public static var AUTOSTOP: Boolean |
| (旧式)あるターゲットに対して、新規にトゥイーンが追加設定された時に、それまでの全トゥイーンプロパティをストップさせるためのオプションです。 |
| public static var DURATION: Number |
(インスタンスレベルで)指定がない場合の、デフォルトのトゥイーン時間です。
|
| public static var EASING: Object |
| (インスタンスレベルで)指定がない場合の、デフォルトのイージングです。
このデフォルト設定は、エンジン内部にハードコードされていますので、 PennerEasing クラスの登録は必要ありません。しかしながら、 "easeOutQuad" といったストリングで指定したい場合は、クラスを登録する必要があります。 また、 (
mx.transitions.easing のような)標準のイージング関数を設定することも可能です。
|
| public static var OUTPUT_LEVEL: Number |
エンジンからの出力結果をコントロールできるので、デバッグ時の助けとなるでしょう。
|
| public static var ROUND_RESULTS: Boolean |
| true に設定すれば、エンジンは、常に数値を整数に丸めてくれるようになります。(ピクセルフォントを使う際に役立ちます)
この機能を使うと、数値を丸める分だけ、アニメーションの質とパフォーマンスは下がりますが、プロジェクトによっては、数値を丸める必要があるケースも想定されます。そういう時には true にしてみましょう。
|
| public static var SKIP_LEVEL: Number |
(Advanced) トゥイーンによる見かけ上の変化がない場合や、トゥイーン時間が0秒の場合のエンジンの振る舞いのデフォルト設定です。
|
| public static var TIME_MULTIPLIER: Number |
| デバッグ機能として利用:全トゥイーンをスキップ・スピードアップ・スピードダウンさせることができます。ZigoEngine と Fuse の時間に関する値全てに対して、この数が乗算されます。
トゥイーン時間や待機時間をはじめ、全ての時間関連の値に影響します。
|
| public static var VERSION: String |
ランタイム時や swf をデコンパイルした際に、FuseKit のバージョンを確認する事ができます。
|
|
(Advanced) Use this method to add a listener for "onTweenInterrupt" event, which is broadcast directly by the engine.
| |||
|
|
| (Advanced) ターゲットのエンジンへの関連付けをクリアします。
Removes AsBroadcaster functionality (and tweening shortcuts if the Shortcuts class was registered) from any object previously initialized using initialize. | |||
|
|
| doTween の代わりに使用でき、ショートカットシンタックスを指定できます。Requires registration of the Shortcuts class.
Yotam Laufer 氏の助言に感謝します。使用例:
ZigoEngine.doShortcut(my_mc, 'scaleTo', 200, 1, 'easeOutQuad');See ZigoEngine introduction for instructions on registering Shortcuts to enable this feature. | ||||||
|
|
| Generates and immediately begins one or more property-tweens running on one or more targets. | |||||||||||||||||||||
|
|
Fast-forwarding a tween ends it and removes it from the engine.
| |||||||||
|
|
| (General) Provides readings by keyword for a target object or Flash7-style color-transform object. Inherent rounding errors are common! Especially when percentages are below 50. Even .tintString hex values may differ slightly. | |||
|
|
| (General) Generates a generic Flash7-style color-transform object with props like ra, etc., by keyword. | |||||||||
|
|
| Depth of the ZigoEnginePulse clip. |
|
|
| Returns the number of tweens active in a target object. | |||
|
|
|
|
| (Advanced) Prepares targets for use with engine. | |||
|
|
| Returns true if the engine contains tweens and is running updates on a pulse |
|
| Test if a target and optionally a specific property is being handled by the engine. | ||||||
|
|
| Locks tweens and prevents from running until tween is unlocked. | |||
|
|
ターゲットオブジェクトの指定したプロパティが変化しているかどうかを判定できます
| ||||||
|
|
| Locks a target to prevent tweens from running until target is unlocked. A warning message is thrown if your program attempts to call a tween on a locked target.
| ||||||
|
|
1つ以上のトゥイーンを一時停止する
| ||||||
|
|
| An optional setup command that registers additional classes for use with the ZigoEngine. This setup command should only be called once at the beginning of your program. Use either this or simpleSetup, not both. The difference is that register links additional classes to the engine without altering base prototypes. import com.mosesSupposes.fuse.*; ZigoEngine.register(PennerEasing, Fuse, FuseFMP);ファイルサイズを最小限にしておくために、必要な機能だけを登録するようにしてください。また、パブリッシュ設定の「Traceアクションを省略」で、さらにファイルサイズを軽くできます。 | |||
|
|
| Remove a listener for onTweenInterrupt event | |||
|
|
エンジン中の特定/全てのトゥイーンターゲットの、特定/全てのトゥイーンプロパティを削除できます。
| ||||||
|
|
1つ、または複数のトゥイーンを(一時停止状態から)再開します
| ||||||
|
|
1つ、または複数のトゥイーンを巻き戻し、そこから一時停止するか再生を再開させるかを設定できます
| ||||||||||||
|
|
| (General) Color-transforms a target by keyword. Example: ZigoEngine.setColorByKey(my_mc, 'tint', 50, 0x33FF00); | ||||||||||||
|
|
| Creates a clip in the _root timeline called "ZigoEnginePulse" or sets its depth | |||
|
|
| When set, the engine will run on a setInterval pulse instead of a frame pulse. In most cases it is best to leave the engine in its default state since a frame-based pulse usually renders more smoothly. The engine always uses seconds for tween duration so using a longer interval will only reduce animation quality, not slow tweens down. This may be desirable in some cases, for instance to reduce CPU usage in banners. | |||
|
|
An alternative setup command that extends prototypes with shortcuts like alphaTo.This setup command should only be called once at the beginning of your program. Use either this or register, not both. The difference is that
simpleSetup alters base prototypes so that you may call tween methods directly on targets, such as my_mc.alphaTo(0);.Example: import com.mosesSupposes.fuse.*; ZigoEngine.simpleSetup(Shortcuts,PennerEasing);ファイルサイズを最小限にしておくために、必要な機能だけを登録するようにしてください。また、パブリッシュ設定の「Traceアクションを省略」で、さらにファイルサイズを軽くできます。 | |||
|
|
| 設定された時間の状態にトゥイーンをスキップできます。
使用しているイージングのスタイルによって、結果は大きく変わります。
| |||||||||
|
|
| 旧式 - resumeTween をご覧下さい |
- register を使えば、エンジンをさらに便利に拡張させることもできます。
alphaToのようなトゥイーンショートカットを追加することができます。Extending prototypes is entirely optional in this version - all Shortcut functionality is excluded from the core engine class.
Events dispatched by ZigoEngine (see addListener for more info):
Events dispatched by individual target objects (see ZManager for more info):onTweenInterruptonTweenStartonTweenUpdateonTweenEnd