| Previous | Next | Frames (Show Nav) | No Frames |
| Summary: Field | Property | Constructor | Method | Detail: Field | Property | Constructor | Method |
Array | +--com.mosesSupposes.fuse.Fuse
Field Summary |
|
| public static |
AUTOCLEAR: Boolean = false |
| クラスのデフォルト設定:whether Fuse instances are automatically
destroyed after playing once unless otherwise specified by instance-level autoClear. |
|
| public static |
AUTOSTOP: Boolean = true |
| クラスのデフォルト設定:whether Fuse instances stop when
a tween is interrupted, or is destroyed if autoClear is turned
on, unless otherwise specified by instance-level autoStop. |
|
| public static |
OUTPUT_LEVEL: Number = 1 |
| クラスのデフォルト設定:Controls how much feedback Fuse
outputs, helpful for debugging. |
|
| public static |
VERSION: String = FuseKitCommon.VERSION |
| クラスのデフォルト設定:Enables kit version to be retrieved
at runtime or when reviewing a decompiled swf. |
|
Property Summary |
|
| public |
autoClear: Boolean |
| インスタンスのデフォルト設定:Fuse instance is automatically
destroyed after playing once. |
|
| public |
autoStop: Boolean |
| インスタンスのデフォルト設定:Fuse instance stops when any
of its running tweens are interrupted, or is destroyed if autoClear is
turned on. |
|
| 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 |
duration: Number |
| インスタンスのデフォルト設定:duration value in seconds for
any action that does not specify one. |
|
| public |
easing: Object |
| インスタンスのデフォルト設定:easing value for any action that
does not specify one. |
|
| public |
id: Number (read-only) |
| インスタンスのデフォルト設定:an auto-assigned numerical reference |
|
| public |
label: String |
| インスタンスのデフォルト設定:Convenience, allows you to name
any Fuse. |
|
| public |
scope: Object |
| インスタンスのデフォルト設定:scope for all functions run from
a Fuse if left unspecified within the action. |
|
| public |
state: String (read-only) |
| Retrieves a Fuse instance's current play-state
string. |
|
| public |
target: Object (read, write) |
| インスタンスのデフォルト設定: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 & management
using familiar methods like push(). |
|
Method Summary |
|
| public static |
addCommand ( commandOrScope: Object, indexOrFunc: Object, argument: Object ): Void |
| シンプルシンタックス: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 |
| シンプルシンタックス:Completes the Fuse generated by open. |
|
| public static |
closeAndStart ( setStart: Object ): Void |
| シンプルシンタックス:Close the open Fuse instance and
start it playing. |
|
| public static |
closeGroup ( ): Void |
| シンプルシンタックス: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 |
| シンプルシンタックス:Begins a new animation group of
simultaneous actions. |
|
| public |
pause ( ): Void |
| 再生コントロール:Pauses a playing Fuse instance and
its running tweens. Waits for resume call to proceed. |
|
| public |
pop ( ): Object |
| Removes the first element from a Fuse and returns that action object. |
|
| public |
push ( ): Number |
| Adds one or more elements to the end of a Fuse and returns the new length of the Fuse. |
|
| 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 |
| Removes the first element from a Fuse and returns that action object. |
|
| public |
skipTo ( indexOrLabel: Object ): Void |
| 再生コントロール: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 |
| 再生コントロール:Begins sequence play at index 0,
with option to set start props prior to play. |
|
| public static |
startRecent ( setStart: Object ): Void |
| シンプルシンタックス:Restarts the Fuse most recently
created using Fuse.open(). |
|
| public |
stop ( ): Void |
| 再生コントロール: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 |
| Adds one or more elements to the beginning of a Fuse and returns the new length of the Fuse. |
|
| public var autoClear: Boolean |
インスタンスのデフォルト設定:一度再生された Fuse インスタンスを自動的に削除します。
|
| public static var AUTOCLEAR: Boolean = false |
クラスのデフォルト設定:一度再生された Fuse インスタンスを自動的に削除します。インスタンスレベルで個別に autoClear が設定されている時は、そちらが優先されます。
|
| public var autoStop: Boolean |
インスタンスのデフォルト設定:実行中のトゥイーンが中断された時に、Fuse インスタンスを停止します。autoClear がオンになっている時は、インスタンスは削除されます。
|
| public static var AUTOSTOP: Boolean = true |
クラスのデフォルト設定:whether Fuse instances stop when a tween is interrupted, or is destroyed if autoClear is
turned on, unless otherwise specified by instance-level autoStop.
|
| public var duration: Number |
インスタンスのデフォルト設定:duration value in seconds for any action that does not specify one.
|
| public var easing: Object |
インスタンスのデフォルト設定:easing value for any action that does not specify one.
|
| public var label: String |
| インスタンスのデフォルト設定:Convenience, allows you to name any Fuse.
The Fuse label is used in output messages, and can be used to reference a Fuse instance in getInstance, fastForward and
Simple Syntax methods open and openGroup.
|
| public static var OUTPUT_LEVEL: Number = 1 |
クラスのデフォルト設定:Controls how much feedback Fuse outputs, helpful for debugging.
|
| public var scope: Object |
インスタンスのデフォルト設定:scope for all functions run from a Fuse if left unspecified within the action.
|
| public static var VERSION: String = FuseKitCommon.VERSION |
クラスのデフォルト設定:Enables kit version to be retrieved at runtime or when reviewing a decompiled swf.
|
|
| Retrieves the current play-index of a Fuse instance. |
|
|
ラベル名が設定されている時、現在再生中のアクションのラベル名を探します。
{ label:"introFade", start_alpha:0, start_brightOffset:100, time:1.5, ease:"easeInExpo" }
|
|
|
| インスタンスのデフォルト設定:an auto-assigned numerical reference |
|
|
| Retrieves a Fuse instance's current play-state string. |
|
|
| インスタンスのデフォルト設定: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()などのおなじみのメソッドを使って管理できます。
|
|||
|
|
非アニメーション用の多目的用途のシンプルシンタックス機能です。 Usagevar f:Fuse = new Fuse();
// callback: scope, func, args
Fuse.addCommand(this, "setItemData", 0, "Submit", true);
// delay
Fuse.addCommand("delay", .5);
// inline Fuse play-command:
// this final action will cause the Fuse to loop
Fuse.addCommand("start");
// advance-trigger (should appear within group)
Fuse.addCommand("trigger", .5);
Some addCommand calls are allowed inside groups ( The Just as delays can stagger the start times of grouped tweens, triggers allow the ends of grouped animations to overlap with the
following action by advancing the action early. For example if an action contains two tweens, the longest of which is 2 seconds
plus a 1-second delay, including |
|||||||||
|
|
| 特定のイベント用にリスナーを追加します。 | ||||||
|
|
現在のターゲットリストにターゲットを追加します。
myFuse.addTarget(clip5); |
|||
|
|
| Returns a copy of Fuse as a new Fuse instance. |
|
|
| シンプルシンタックス:open
を使って生成された Fuse を閉じ、Fuse インスタンス生成完了です。
重要なことですが、
Fuse.open() を使って生成開始された Fuse は、Fuse.close()と Fuse.closeAndStart()のどちらかを使って閉じてはじめて、 Fuse インスタンスの生成完了となります。閉じることなく、
オープンされたままの Fuse インスタンスを start させることはできません。
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();
// その後、プログラム中のどこかで、、
runSetup.start(); // reference the Fuse created
|
|
|
シンプルシンタックス:open された Fuse インスタンスを閉じ、そのまま再生を開始します。
var runSetup:Fuse = Fuse.open(); clip1.fadeOut(); clip2.fadeOut(); clip3.fadeOut(); Fuse.closeAndStart(); |
|||
|
|
| シンプルシンタックス: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.
|
|
|
| 残り全てのアクションを早送りして飛ばします。
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.
|
|||
|
|
シンプルシンタックス:同時に実行させるアクショングループの定義を開始できます。
Fuse.openGroup(); は Fuse.open();の代わりに使うことができます。前のグループが open なままの状態で、さらに Fuse.openGroup();した時は、前のグループは自動的に閉じられます。
// Fuse.open() の代わりに、新規 Fuse を生成することができます。
Fuse.openGroup();
clip1.tween("_x","100");
clip2.tween("_scale",200);
Fuse.openGroup(); // 他のグループが開いている時、そのグループの closeGroup を省略できます。
clip1.tween("_x","-100");
clip2.tween("_scale",100);
Fuse.closeAndStart(); // ここでも closeGroup を省略しています。
|
|||
|
|
| 再生コントロール:再生中の Fuse インスタンスと実行中のトゥイーンを一時停止します。再開するには resume メソッドを呼び出して下さい。 |
|
|
| Fuse の最初の要素を削除、できたアクションオブジェクトを返します。 |
|
|
Fuse の末尾に1つ以上の要素を追加し、追加後の Fuse の length を返します。
|
|||
|
|
| 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 | ||||||
|
|
現在のターゲットリストから、指定したターゲットを削除します。
myFuse.removeTarget(clip5); |
|||
|
|
| 一時停止された Fuse インスタンスとそのアニメーションを再開できます。Attempts to correct for animations that have been disrupted during pause. |
|
|
| Fuse のシーケンスの順番を逆転できます。 |
|
利用可能なイベント
onStartonStoponPauseonResumeonAdvanceonCompleteAsBroadcaster ベースの ZigoEngine とは異なり、Fuse は mx EventDispatcher を使っています。
var f:Fuse = new Fuse(); f.addEventListener("onComplete", myListenerObj);Fuse ユーテリティーは次の要素で構成されています:
Fuse Object Syntax の引数については Fuse コンストラクタの部分に記載されています。
Fuse Simple Syntax の引数については Fuse.open の部分に記載されています。