| 前のページ | 次のページ | フレーム表示 | フレームなし |
| 概要:フィールド | プロパティ | コンストラクタ | メソッド | 詳細:フィールド | プロパティ | コンストラクタ | メソッド |
Array | +--com.mosesSupposes.fuse.Fuse
Field Summary |
|
| public |
autoClear: Boolean |
| インスタンスレベルのデフォルト設定: 一度再生が終わった Fuse インスタンスを自動的に削除します。 |
|
| public static |
AUTOCLEAR: Boolean |
| クラスレベルのデフォルト設定: 一度再生が終わった Fuse インスタンスを自動的に削除するかどうかを選べます。
インスタンスレベルで個別に autoClear が設定されている場合は、そちらが優先されます。 |
|
| public |
autoStop: Boolean |
| インスタンスレベルのデフォルト設定:トゥイーンが中断された時点で、Fuse インスタンスを停止します。また、autoClear がオンの時は、その Fuse インスタンスを削除します。 |
|
| public static |
AUTOSTOP: Boolean |
| クラスレベルのデフォルト設定:トゥイーンが中断された時点で、Fuse インスタンスを停止させるかどうかを設定できます。また、インスタンスレベルの autoStop プロパティが設定されていない時で、autoClear がオンになっている時は、その Fuse インスタンスを削除します。 |
|
| public |
duration: Number |
| インスタンスレベルのデフォルト設定:(インスタンスメソッドレベルで)個別に設定されていない場合の、アクションの継続時間を、秒単位で設定しておけます。 |
|
| public |
easing: Object |
| インスタンスレベルのデフォルト設定: (インスタンスメソッドレベルで)個別に設定されていない場合の、イージング値を設定しておけます。 |
|
| public |
label: String |
| インスタンスレベルのデフォルト設定: Fuse インスタンスに名前をつける事ができる便利な設定です。 |
|
| public static |
OUTPUT_LEVEL: Number |
| クラスレベルのデフォルト設定: Fuseからの出力結果のフィードバックの度合いを調節できるので、デバッグの手助けとなるでしょう。 |
|
| public |
scope: Object |
| インスタンスレベルのデフォルト設定: Fuse から実行される全ての関数(関数内で別途スコープ定義されているものは除く)のスコープを設定できます。 |
|
| public static |
VERSION: String |
| クラスレベルのデフォルト設定:ランタイム時や swf をデコンパイルした際に、FuseKit のバージョンを確認する事ができます。 |
|
Property Summary |
|
| public |
currentIndex: Number (read-only) |
| Retrieves the current play-index of a Fuse instance. |
|
| public |
currentLabel: String (read-only) |
| Retrieves the currently playing action's label, if defined. |
|
| public |
id: Number (read-only) |
| Instance default: an auto-assigned numerical reference |
|
| public |
state: String (read-only) |
| Retrieves a Fuse instance's current play-state string. |
|
| public |
target: Object (read, write) |
| Instance default: Sets one or more animation targets that will be used for any actions that don't specify their own. |
|
Constructor |
|
| Fuse ( action: Object) | |
Fuse extends Array to enable sequence-building & mangaement using familiar methods like push(). |
|
Method Summary |
|
| public static |
addCommand ( commandOrScope: Object, indexOrFunc: Object, argument: Object ): Void |
| Simple Syntax: Multi-purpose method to add an inline Fuse command, delay, or function-call to the open Fuse. |
|
| public |
addEventListener ( event: String, handler: Object ): Void |
| Add a listener for a particular event |
|
| public |
addTarget ( t: Object ): Void |
| Adds to current default target list. |
|
| public |
clone ( ): Fuse |
| Returns a copy of Fuse as a new Fuse instance. |
|
| public static |
close ( ): Void |
| Simple Syntax: Completes the Fuse generated by open. |
|
| public static |
closeAndStart ( setStart: Object ): Void |
| Simple Syntax: Close the open Fuse instance and start it playing. |
|
| public static |
closeGroup ( ): Void |
| Simple Syntax: Closes an action group started by openGroup. |
|
| public |
destroy ( ): Void |
| Deletes all variables and properties in the Fuse instance. |
|
| public |
fastForward ( resumeAtIndexOrLabel: Object ): Void |
| Fast-forwards animations in some or all remaining actions. |
|
| public |
getActiveTargets ( includeDefaults: Boolean ): Array |
| Gets both the default target list and any targets in the action currently being played. |
|
| public static |
getInstance ( idOrLabel: Object ): Fuse |
| Instance-management: Gets a Fuse instance by its id or label |
|
| public static |
getInstances ( stateFilter: String, targets: Object ): Array |
| Instance-management: Get an array of some or all Fuse instances in active memory, with filtering options. |
|
| public static |
open ( fuseOrID: Object ): Fuse |
| Simple Syntax:Generate a new Fuse and begin intercepting tween calls until close is called. |
|
| public static |
openGroup ( fuseOrID: Object ): Fuse |
| Simple Syntax: Begins a new animation group of simultaneous actions. |
|
| public |
pause ( ): Void |
| Play-control: Pauses a playing Fuse instance and its running tweens. Waits for resume call to proceed. |
|
| public |
pop ( ): Object |
| Removes last object placed into the Fuse instance. |
|
| public |
push ( ): Number |
| Pushes arguments into Fuse instance. |
|
| public |
pushTween ( targets: Object, props: Object, endvals: Object, seconds: Number, ease: Object, delay: Number, callback: Object ): Number |
| Lets you add an item to the Fuse in ZigoEngine.doTween() syntax. Pushes tween arguments into Fuse instance and accepts the same arguments as ZigoEngine.doTween(). |
|
| public |
removeEventListener ( event: String, handler: Object ): Void |
| Remove a listener for a particular event |
|
| public |
removeTarget ( t: Object ): Void |
| Removes targets from the current default target list. |
|
| public |
resume ( ): Void |
| Resumes a paused Fuse instance and its animations. Attempts to correct for animations that have been disrupted during pause. |
|
| public |
reverse ( ): Void |
| Reverse the sequence of the Fuse |
|
| public |
setStartProps ( trueOrItemIDs: Object ): Void |
General: Presets start-properties like start_x in all or specific items. |
|
| public |
shift ( ): Object |
| Shifts position of object in Fuse order. |
|
| public static |
simpleSetup ( ): Void |
| Deprecated. Use new setup options: ZigoEngine.register or ZigoEngine.simpleSetup. |
|
| public |
skipTo ( indexOrLabel: Object ): Void |
| Play-control: Starts Fuse at a particular index/label. |
|
| public |
slice ( indexA: Number, indexB: Number ): Array |
| Returns a new array instance consisting of a range of elements from the original array without modifying the original array. The array returned by this method includes the indexA element and all elements up to, but not including indexB element. If no parameters are passed, a duplicate of the original array is generated. For more information, see the Flash help explanation of Array.slice. |
|
| public |
splice ( startIndex: Number, deleteCount: Number ): Void |
| Used to insert or remove items. Works almost exactly like Array.splice. Removed actions are destroyed permanently, with the exception of nested Fuses. |
|
| public |
start ( setStart: Object ): Void |
| Play-control: Begins sequence play at index 0, with option to set start props prior to play. |
|
| public static |
startRecent ( setStart: Object ): Void |
| Simple Syntax: Restarts the Fuse most recently created using Fuse.open(). |
|
| public |
stop ( ): Void |
| Play-control: Stops a playing or paused Fuse instance and resets the play-index to 0. |
|
| public |
toString ( ): String |
| public |
traceItems ( indexA: Number, indexB: Number ): Void |
| Traces specific or all objects contained within the fuse |
|
| public |
unshift ( ): Number |
| Removes argument objects from Fuse instance. |
|
| public var autoClear: Boolean |
インスタンスレベルのデフォルト設定: 一度再生が終わった Fuse インスタンスを自動的に削除します。
|
| public static var AUTOCLEAR: Boolean |
クラスレベルのデフォルト設定: 一度再生が終わった Fuse インスタンスを自動的に削除するかどうかを選べます。
インスタンスレベルで個別に autoClear が設定されている場合は、そちらが優先されます。
|
| public var autoStop: Boolean |
インスタンスレベルのデフォルト設定:トゥイーンが中断された時点で、Fuse インスタンスを停止します。また、autoClear がオンの時は、その Fuse インスタンスを削除します。
|
| public static var AUTOSTOP: Boolean |
クラスレベルのデフォルト設定:トゥイーンが中断された時点で、Fuse インスタンスを停止させるかどうかを設定できます。また、インスタンスレベルの autoStop プロパティが設定されていない時で、autoClear がオンになっている時は、その Fuse インスタンスを削除します。
|
| public var duration: Number |
インスタンスレベルのデフォルト設定:(インスタンスメソッドレベルで)個別に設定されていない場合の、アクションの継続時間を、秒単位で設定しておけます。
|
| public var easing: Object |
インスタンスレベルのデフォルト設定: (インスタンスメソッドレベルで)個別に設定されていない場合の、イージング値を設定しておけます。
|
| public var label: String |
| インスタンスレベルのデフォルト設定: Fuse インスタンスに名前をつける事ができる便利な設定です。
Fuse のラベル名は、出力メッセージでの認識名として役に立つだけでなく、getInstance, fastForward で Fuse インスタンスを指定する時のリファレンスとして、また、open や openGroup といったシンプルシンタックスメソッドでも利用されます。
|
| public static var OUTPUT_LEVEL: Number |
クラスレベルのデフォルト設定: Fuseからの出力結果のフィードバックの度合いを調節できるので、デバッグの手助けとなるでしょう。
|
| public var scope: Object |
インスタンスレベルのデフォルト設定: Fuse から実行される全ての関数(関数内で別途スコープ定義されているものは除く)のスコープを設定できます。
|
| public static var VERSION: String |
クラスレベルのデフォルト設定:ランタイム時や swf をデコンパイルした際に、FuseKit のバージョンを確認する事ができます。
|
|
| Retrieves the current play-index of a Fuse instance. |
|
|
| Retrieves the currently playing action's label, if defined.
{ label:"introFade", start_alpha:0, start_brightOffset:100, time:1.5, ease:"easeInExpo" }
|
|
|
| インスタンスのデフォルト設定:自動的に割り当てられるリファレンス番号 |
|
|
| Retrieves a Fuse instance's current play-state string. |
|
|
| Instance default: Sets one or more animation targets that will be used for any actions that don't specify their own.
Overwrites prior existing targets.
var f:Fuse = new Fuse(); f.target = [clip1, clip2]; |
|
|
Fuse は Array クラスを拡張させたもので、 push()メソッドなどを使って、(アニメーション・イベント)シーケンスを設計&管理することができます。
|
|||
|
|
| Simple Syntax: Multi-purpose method to add an inline Fuse command, delay, or function-call to the open Fuse.
var f:Fuse = new Fuse();
// callback: scope, func, args
Fuse.addCommand(this, "setItemData", 0, "Submit", true);
// delay
Fuse.addCommand("delay", .5);
// inline Fuse play-command: forces Fuse to loop by restarting
Fuse.addCommand("start");
Fuse.closeAndStart();
|
|||||||||
|
|
| Add a listener for a particular event | ||||||
|
|
| Adds to current default target list.
myFuse.addTarget(clip5); |
|||
|
|
| Fuse インスタンスのコピーを、新規 Fuse インスタンスとして返します |
|
|
| Simple Syntax: Completes the Fuse generated by open.
It is important that you complete each Fuse created using
Fuse.open() using either Fuse.close() or Fuse.closeAndStart(). You cannot call start on a Fuse instance while Fuse is open.
var runSetup:Fuse = Fuse.open();
Fuse.addCommand(this, "callbackOne");
Fuse.addCommand("delay", .25);
Fuse.addCommand(this, "callbackTwo");
Fuse.addCommand("delay", .25);
Fuse.addCommand(this, "callbackThree");
Fuse.close();
// later in program...
runSetup.start(); // reference the Fuse created
|
|
|
| Simple Syntax: Close the open Fuse instance and start it playing.
var runSetup:Fuse = Fuse.open(); clip1.fadeOut(); clip2.fadeOut(); clip3.fadeOut(); Fuse.closeAndStart(); |
|||
|
|
| Simple Syntax: Closes an action group started by openGroup.
May be omitted if followed by
Fuse.close or Fuse.closeAndStart.If Fuse.openGroup() is called while a previous group was open, the preceding group is closed automatically and the closeGroup command can be skipped.
Fuse.open();
clip1.tween("_x","100");
Fuse.openGroup();
clip1.tween("_x","-100");
clip2.tween("_scale",200);
Fuse.closeGroup();
clip1.scaleTo(0);
clip2.scaleTo(0);
Fuse.closeAndStart();
|
|
|
Deletes all variables and properties in the Fuse instance.
|
|
|
| Fast-forwards animations in some or all remaining actions.
Behavior:
|
|||
|
|
| Gets both the default target list and any targets in the action currently being played. | |||
|
|
| Instance-management: Gets a Fuse instance by its id or label
This simple method returns one known Fuse instance. For more complex options use getInstances.
|
|||
|
|
| Instance-management: Get an array of some or all Fuse instances in active memory, with filtering options.
// get currently playing Fuses that handle the target my_mc
var myMcFuses:Array = Fuse.getInstances("playing",my_mc);
// get all the Fuses in active memory
var fuses:Array = Fuse.getInstances();
|
||||||
|
|
| Simple Syntax:Generate a new Fuse and begin intercepting tween calls until close is called.
Simple Syntax is an alternative way to construct Fuse sequences. Its primary uses are 1. Clear method-call sequencing and 2. An easy way for non-advanced coders to set up sequences.
|
|||
|
|
| Simple Syntax: Begins a new animation group of simultaneous actions.
Fuse.openGroup(); can be called in place of Fuse.open();.If Fuse.openGroup(); is called while a previous group was open, the preceding group is closed automatically.
// use in place of Fuse.open() to begin a new Fuse.
Fuse.openGroup();
clip1.tween("_x","100");
clip2.tween("_scale",200);
Fuse.openGroup(); // you can skip closeGroup if opening another group.
clip1.tween("_x","-100");
clip2.tween("_scale",100);
Fuse.closeAndStart(); // you can skip closeGroup here too.
|
|||
|
|
| Play-control: Pauses a playing Fuse instance and its running tweens. Waits for resume call to proceed. |
|
|
| Removes last object placed into the Fuse instance. |
|
|
| Pushes arguments into Fuse instance. |
|
|
| Lets you add an item to the Fuse in ZigoEngine.doTween() syntax. Pushes tween arguments into Fuse instance and accepts the same arguments as ZigoEngine.doTween(). | |||||||||||||||||||||
|
|
| Remove a listener for a particular event | ||||||
|
|
| Removes targets from the current default target list.
myFuse.removeTarget(clip5); |
|||
|
|
| Resumes a paused Fuse instance and its animations. Attempts to correct for animations that have been disrupted during pause. |
|
|
| Reverse the sequence of the Fuse |
|
|
General: Presets start-properties like start_x in all or specific items.
In this example a sequence is set up and all start props are set, although the Fuse may not be used until later.
var f:Fuse = new Fuse();
f.target = clip1;
f.push({ start_alpha:0 }); // fade up
f.push({ x:'100', start_scale:150}); // scale down and slide
f.setStartProps();
If you want to set start props as the Fuse is started, you can pass setStartProps parameters to start. |
|||
|
|
| Shifts position of object in Fuse order. |
|
|
| Deprecated. Use new setup options: ZigoEngine.register or ZigoEngine.simpleSetup. Deprecated. Throws an error. |
|
| Play-control: Starts Fuse at a particula |
Events dispatched:
onStartonStoponPauseonResumeonAdvanceonCompleteAsBroadcaster を使っている ZigoEngine とは異なり、Fuse は mx EventDispatcher がベースに使われています。
var f:Fuse = new Fuse(); f.addEventListener("onComplete", myListenerObj);Fuse クラスには、以下のものが含まれています:
Fuse オブジェクトシンタックスの各パラメーター内容は、コンストラクタメソッド Fuse の項目に記載してあります。
Fuse シンプルシンタックスの各パラメーター内容は、Fuse.open の項に記載してあります。