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) Option to stop all tweening props in target as a new tween is added. |
public static var DURATION: Number = 1 |
Default tween duration if unspecified.
|
public static var EASING: Object = "easeOutQuint" |
Default easing if unspecified.
This default is hardcoded in the engine and doesn't require that PennerEasing is registered. However you will need to register that class with the engine if you wish to set this property to a similar string like "easeOutQuad". You may also set this property to any standard easing function (like
mx.transitions.easing ).
|
public static var OUTPUT_LEVEL: Number = 1 |
Controls how much feedback the engine outputs, helpful for debugging.
|
public static var ROUND_RESULTS: Boolean = false |
If set true the engine always rounds its math (helpful with pixelfonts).
Degradation in animation and performance is minor with this feature enabled. Hence it was left a global toggle with the assumption that it should only be set true for projects requiring rounding.
|
public static var SKIP_LEVEL: Number = 0 |
(Advanced) Sets default engine behavior for situations where tweens fail to affect a visible change or have no duration.
|
public static var 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.
Affects all durations, delays, and time-based triggers kit-wide.
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). Set to 0 to fast-forward through all animation. Unlike Fuse.fastForward, all callbacks and events associated with tweens are still fired, durations are simply set to 0. Note that based on SKIP_LEVEL settings this may alter some behaviors in your program. Values between 0 and 1 cause tweens to run faster than their specified duration, on a percentage basis. For example a setting of .25 would reduce durations to 25% of their actual values, making tweens run 1-1/2 times faster. Any value greater than 1 will cause tweens to run in slow motion by increasing durations on a percentage basis. For example a setting of 2 would force tweens to run at half speed.
|
public static var 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.
|
|
(Advanced) Use this method to add a listener for "onTweenAdd" and "onTweenInterrupt" events,
which are broadcast directly by the engine.
|
|||
|
|
(Advanced) Clears targets from being used with the engine.
Removes AsBroadcaster functionality (and tweening shortcuts if the Shortcuts class was registered) from any object previously initialized using
initialize . |
|||
|
|
An alternative to doTween that accepts Shortcut syntax. Requires registration of the Shortcuts class.
This idea thanks to Yotam Laufer. Example:
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. | |||
|
|
Test whether any or a specific property is paused in a target object
|
||||||
|
|
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.
|
||||||
|
|
Pause one or more tweens
|
||||||
|
|
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);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.
|
||||||
|
|
Unpause one or more tweens.
|
||||||
|
|
Rewinds and either pauses or restarts one or more tweens
|
||||||||||||
|
|
(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);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. |
|||
|
|
Jumps a tween to a specific point in its duration.
Results vary dramatically based on the easing style used.
|
|||||||||
|
|
Legacy - see resumeTween |
- You may then optionally extend the engine's capabilities using register.
alphaTo
to MovieClips, Buttons and TextFields.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):
onTweenAdd
onTweenInterrupt
onTweenStart
onTweenUpdate
onTweenEnd