Frames (Show Nav) | No Frames |
[ Changes since version 2.0 only. For earlier changes see Upgrading ]
If you are familiar with the Fuse Kit, you know that it contains three major elements:
Since version 2.0 the architecture of Fuse has let you mix and match these code components based on your project needs.
Version 2.1 is a significant release that improves on all three of these elements.The information that follows will be most useful to people who have used the Fuse Kit in the past and are interested in finding out what has changed and been added. If you're new to the Fuse Kit you should probably start with the introductions to the three main classes in the regular documentation instead.
The new Fuse Extension is well worth installing if you own a copy of Flash. (If you do not use Flash, the swf is provided in the download bundle.) It features:
New features let you Fast-forward through Fuse & engine animations. And for build & debug cycles when you want to zip through transitions quickly, you can now tweak the speed at which all tweens play swf-wide.
An important and positive Fuse change to know about is that interrupted Fuses now stop automatically (and if set to auto-clear they self-delete), which represents a change in kit behavior designed to make it a lot easier to mix Fuse with interactivity. More on this topic below.
Perhaps the biggest update for advanced developers is built-in "multi-tween" functionality in the animation engine. This means that you can tween all of the sub-properties in any Object or Array as a single item, at once. For instance, you could tween a Matrix object and use an update callback to reapply the matrix to a target, in order to tween a number of visual transformations at once — including skew. (Code examples in the docs and example files shipped with the download bundle.)
And by popular demand:
Fuse gets instance-level easing and duration defaults to avoid having to repeat those properties across actions; ZigoEngine gets math-rounding control on a per-tween basis; and FuseFMP BlurFilters now use 0 as their default, so that Blur_blurX or Blur_blurY tweens will leave the unaffected property crisp. Details below.
Bonus: all $dollarSigns have been removed from FuseFMP's parameters... woohoo!
Fuse.AUTOSTOP = true
and Fuse
instance autoStop
property added"onStop"
event and if set to auto-clear, they also delete themselves.Note that this item represents a DEFAULT BEHAVIOR CHANGE for Fuse that affects all users. Normally it will just make coding interactivity easier and won't require any action on your part. For more info see If upgrading Fuse within an existing program... on the Upgrading page.
Fuse.addCommand( "trigger", 2 );
fastForward
method: jump through some or all animations in a Fuse public var duration:Number;
public var easing:Object;
myFuse.easing = "easeInOutQuad";
provides a new default for myFuse
only, that overrides ZigoEngine.EASING
but can still be overridden within any action that specifies its own ease / easing
parameter. action
property may now be an Array.
(see Fuse constructor in docs)
{ target: clip1_mc, action:[ fadeIn, slideIn ] }
_fade / fade
- works like _alpha + _visible
.
{ target:mc, fade:0, seconds:2 }
turns visibility off after tweening _alpha to 0 { target:mc, start_fade:0, seconds:2 }
turns visibility on before fading up to 100 BevelFilter_alphas
or BevelFilter_colors
Matrix
objects to achieve skewing and other transformations ZigoEngine.ROUND_RESULTS
) is turned on, but you need to retain decimal-level control for certain 0-to-1-range properties such as BitmapFilter alphas.
Or if you're using pixel fonts you may prefer to use rounding for just text-related tweens while leaving the global default turned off.
roundResults:true
to any tween's callback object to force rounding for that tween roundResults:false
to cancel rounding when the global default ZigoEngine.ROUND_RESULTS = true
public static var ZigoEngine.TIME_MULTIPLIER:Number = 1;
skipTweenTo
method and Shortcut: skip to any position within an active tween ZigoEngine.skipTweenTo(seconds:Number, targs:Object, props:Object):Void
_fade
- works like _alpha + _visible
.
fadeIn
& fadeOut
shortcuts scope
parameter in a callback object as a default
like Fuse.
{ scope:this, func:'callback', updfunc:'update', startscope:clip1, startfunc:'start'}
func
and updfunc
will both resolve to this
, while startfunc
specifies a different scope. suppressEndEvents
parameter in ffTween
method (similar to rewTween
) public static var BLUR_ZERO:Boolean = true;
{ start_Blur_blurX:100 }
now leaves the target crisp when done. BevelFilter_colors
are now tweenable (see Multi-tween support above) FuseFMP.setFilterProps
has been rewritten to perform much faster.
writeFilter
when a properties object is passed, which makes an internal setFilterProps
call. easyfunc
parameter found in several places has been removed from the kit. Instead, use easyfunc-style strings like "trace('done')" for regular startfunc
/ updfunc
/ func
callback params (when Shortcuts is registered). ZigoEngine.getTweens
now returns 0 instead of NaN if queried prior to first tween.FuseKitCommon.parseCallback
method._sState:String
to _nState:Number
fastForward
functionality.Fuse.traceItems
has been improved
FuseKitCommon._validateFuseCommand
method addedFuse.getHandle
added to standardize naming during output messagesextra1
& extra2
params fixed in FusetraceItems
string output.Fuse.splice
was leaving null values in place of removed items. Fuse.pushTween
was malfunctioning when multiple targets were passedVisit Fuse home page for latest updates!