| Previous | Next | Frames (Show Nav) | No Frames |
| Summary: Field | Property | Constructor | Method | Detail: Field | Property | Constructor | Method |
Object | +--com.mosesSupposes.fuse.ZigoEngine
Field Summary |
|
| public static |
AUTOSTOP: Boolean = false |
| (Legacy) Option to stop all tweening props in target as a new tween is added. |
|
| public static |
DURATION: Number = 1 |
| Default tween duration if unspecified. |
|
| public static |
EASING: Object = "easeOutQuint" |
| Default easing if unspecified. |
|
| public static |
OUTPUT_LEVEL: Number = 1 |
| Controls how much feedback the engine outputs, helpful for debugging. |
|
| public static |
ROUND_RESULTS: Boolean = false |
| If set true the engine always rounds its math (helpful with pixelfonts). |
|
| public static |
SKIP_LEVEL: Number = 1 |
| (Advanced) Sets default engine behavior for situations where tweens fail to affect a visible change or have no duration. |
|
| public static |
TIME_MULTIPLIER: Number = 1 |
| 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 = FuseKitCommon.VERSION + ", ZigoEngine based on concepts by Ladislav Zigo, laco.wz.cz/tween" |
| 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 "onTweenAdd" and "onTweenInterrupt" events,
which are 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 onTweenAdd or onTweenInterrupt events. |
|
| 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 = false |
| (Legacy) 新規トゥイーンが追加された際に、ターゲットのトゥイーンプロパティを停止するかどうかを選べます。. |
| public static var DURATION: Number = 1 |
個別に設定されていない場合の、デフォルトのトゥイーン時間です。
|
| public static var EASING: Object = "easeOutQuint" |
| 個別に設定されていない場合の、デフォルトのイージング方式です。
デフォルトのトゥイーンだけは、エンジン中にハードコードされていますので、わざわざ PennerEasing を登録する必要はありません。しかし "easeOutQuad"のようなストリングをプロパティに指定したい場合は、そのクラスを register しなければいけません。また、標準のイージング関数(
mx.transitions.easing)についても、同様にインポートしておく必要があります。
|
| public static var OUTPUT_LEVEL: Number = 1 |
エンジンから出力されるフィードバックの情報量をコントロールできるので、デバッグに役立ちます。
|
| public static var ROUND_RESULTS: Boolean = false |
|
true に設定すれば、エンジンが数値を自動的に丸めて(整数にして)くれます。ピクセルフォントの使用に役立ちます。
この機能を利用すると、アニメーションの精度やパフォーマンスが低下します。数値を丸める必要があるプロジェクトにのみ、true 設定して使うようにして下さい。
|
| public static var SKIP_LEVEL: Number = 0 |
(Advanced) トゥイーンしても見かけ上の変化がなかったり、0秒でのドゥイーンといった状況下での、エンジンのデフォルトのふるまいを設定できます。
|
| public static var TIME_MULTIPLIER: Number = 1 |
| デバッグ機能:全てのトゥイーンの実行速度を一括で調整(スキップ、スピードアップ、スロー)することができます。ZigoEngine と Fuse の全ての設定値が、この値を乗算します。
全ての再生時間(duration)、遅延時間(delay)、キット中の時間ベースのトリガー機能に影響します。
A reminder message like [ ZigoEngine.TIME_MULTIPLIER: 20% ] is sent to output each time the setting is changed, upon the start of the next tween (unless ZigoEngine.OUTPUT_LEVEL has been set to 0). 全てのアニメーションの再生時間を0にしたり、早めたりできます。. Fuse.fastForward とは違って、トゥイーンに関連づけられた全てのコールバックとイベントは実行されます。ただ単に、duration が 0 になるということです。それでも SKIP_LEVEL 設定を使えば、その振る舞いをも変更することは可能です。 0から1の間の値にすれば、各トゥイーンン設定された再生時間より速くなります。パーセンテージで考えると理解しやすいでしょう。例えば .25 と設定すれば、再生時間は 25% になるので、各トゥイーンに設定された実際の再生時間設定よりも速くなります。 1以上に設定すると、今度は値を増やせば増やすほど、スローになっていきます。これもパーセンテージで考えるとよいでしょう。例えば、値を 2 にすると、再生時間は倍遅くなります。
|
| public static var VERSION: String =FuseKitCommon.VERSION + ", ZigoEngine based on concepts by Ladislav Zigo, laco.wz.cz/tween" |
ランタイム時やデコンパイル時に、キットのバージョンを取得することができます。
|
|
(Advanced) "onTweenAdd" や "onTweenInterrupt" イベントに、リスナーを追加する時にこのメソッドを使います。イベントはエンジンから直接ブロードキャストされます。
|
|||
|
|
| (Advanced) ターゲットをエンジン使用対象からクリアします。
Removes AsBroadcaster functionality (and tweening shortcuts if the Shortcuts class was registered) from any object previously initialized using
initialize. |
|||
|
|
| doTween の代替で、ショートカットシンタックスが使えます。Shortcuts クラスが登録されている必要があります。
このアイデアは Yotam Laufer さんによるものです。例:
ZigoEngine.doShortcut(my_mc, 'scaleTo', 200, 1, 'easeOutQuad');See ZigoEngine introduction for instructions on registering Shortcuts to enable this feature. |
||||||
|
|
| 単一あるいは複数ターゲットの、単一あるいは複数プロパティに対し、トゥイーンを設定&実行できます。 | |||||||||||||||||||||
|
|
トゥイーンを終点まで早送りし、そのトゥイーンをエンジンから削除します。
|
|||||||||
|
|
| (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. |
|
|
| ターゲットオブジェクト中でアクティブなトゥイーンの数を返してくれます。 | |||
|
|
|
|
| (Advanced) ターゲットがエンジンを使える状態にします。 | |||
|
|
| エンジンがトゥイーンを実行中、つまりパルスをアップデートしている場合に true を返します。 |
|
| ターゲットに対し、エンジンによって該当プロパティが関連づけられているかどうかを評価します。 | ||||||
|
|
| トゥイーンがアンロックされるまでの間、トゥイーンをロックして再生を食い止めます。(isTweenLockdeは評価プロパティでは?) | |||
|
|
ターゲットオブジェクト中の特定のプロパティが一時停止されているかどうかを評価できます
|
||||||
|
|
| トゥイーンがアンロックされるまでの間、トゥイーンをロックして再生を食い止めます。
ロックされたターゲットに対してトゥイーンを呼び出そうとすると、警告メッセージが出力されます。
|
||||||
|
|
1個以上のトゥイーンを一時停止できます
|
||||||
|
|
| ZigoEngine と併用して使いたい追加クラスを登録するコマンドのひとつです。
このセットアップコマンドはプログラム冒頭で1度呼び出しておけばOKです。この register か simpleSetup のどちらか一方を使うようにし、併用はしないで下さい。違いを挙げると、
register はベースとなるプロトタイプを変更することなく、追加クラスにリンクさせる点です。
import com.mosesSupposes.fuse.*; ZigoEngine.register(PennerEasing, Fuse, FuseFMP);Note that to keep filesize to a minimum you should only register the features you intend to use. Use publish settings to "omit trace actions" to further reduce filesize. |
|||
|
|
| Remove a listener for the onTweenAdd or onTweenInterrupt events. | |||
|
|
Remove specific or all tweening properties from specific or all tweening targets in engine.
|
||||||
|
|
トゥイーンを再開します。
|
||||||
|
|
トゥイーンを巻き戻した後、そこで停止 or 再開させるかを選ぶことができます。
|
||||||||||||
|
|
| (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 | |||
|
|
| 設定すれば、エンジンはフレーム周期ではなく、setInterval 周期で実行されるようになります。
ほとんどの場合、エンジンのデフォルト状態である、フレームベース周期のままにしておいた方が描画もスムーズで最善です。エンジンは常に秒ベースでトゥイーン時間で動くため、インターバルが長くなると、アニメーションのクオリティが下がってしまうのです。この機能は、バナー案件などで、CPU負荷を減らしたいような場合に使うことを想定しています。
|
|||
|
|
プロトタイプ拡張を実装するセットアップ方法のひとつで、alphaTo といったショートカットが使えるようになります。
このセットアップコマンドはプログラムの冒頭で1度呼び出せばOKです。このコマンドか register のどちらかを使うようにします。併用しないようにしてください。 相違点を挙げると、
simpleSetup はターゲット上で直接トゥイーンメソッドが呼び出せるように、ベースのプロトタイプを拡張する点にあります。例: my_mc.alphaTo(0);.Example: import com.mosesSupposes.fuse.*; ZigoEngine.simpleSetup(Shortcuts,PennerEasing);ファイルサイズを最小限に抑えるために、必要な機能だけを登録するようにしてください。さらに軽量化したい時は、パブリッシュ設定の「トレースを省略」を設定してください。 |
|||
|
|
| あるトゥイーンに対し、そのトゥイーンの指定秒数の状態までジャンプすることができます。
イージングスタイルの設定によって、結果は大きく影響されます。
|
|||||||||
|
|
| Legacy - see resumeTween |
- register を使ってオプションでエンジンを拡張させることもできます。
alphaToのようなトゥイーニングショートカットを追加する方法。.このバージョンでは、プロトタイプ拡張はオプション扱いとなっています - ショートカット機能は全て、コアエンジンクラスから除外されました。
ZigoEngine から配信されるイベン(詳細は addListener をご覧ください):
各ターゲットオブジェクトから配信されるイベント(詳細は ZManager をご覧ください):onTweenAddonTweenInterruptonTweenStartonTweenUpdateonTweenEnd