Getting Started
At the center of the Fuse Kit is a robust animation engine, surrounded by a handful of useful related tools.
Instead of specializing to a niche, the Fuse Kit offers a set of general-purpose tools that Flash denizens of all stripes can
make good use of — from first-timers to proficient object-oriented programmers. ± more
± Artists and beginning coders
± Programmers
For a rundown of Kit features with code examples, read the PDF: "Using Fuse" - a primer in plain English, available
at the website.
Key Points
- Fuse Kit simplifies coding animation, time-based events, and BitmapFilters. ± more
- Fuse Kit is broken into pieces you can mix & match based on your project needs. ± more
- There are a number of different ways to work with animation and events in Fuse Kit. This is often confusing to newcomers, but
there are reasons behind it. Fuse is not for everything! In particular, it
is not made for simple tweens like rollover effects. Please take the time to understand what Fuse and ZigoEngine actually
do — Using them appropriately will save you a lot of trouble.
± The ZigoEngine class manages all dynamic tweens in your
swf in one central place.
- The engine's format is that of a single compact automaton, efficiently spinning through any number of tweens, then shutting
itself off when not in use. ± more
- Shortcut tweens are not part of the ZigoEngine class. They are an optional feature. ± more
- Besides dispatching events at each tween's start, update and end, ZigoEngine also features built-in callback functionality,
making it very easy to fire single functions without listeners.
- You can tween a timeline's playhead using the engine's _frame property. However, beyond this it's recommended that you don't
try to mix engine tweens with timeline tweens in the same scope, as this will often cause timeline tweens to fail.
- ZigoEngine alone adds about 10kb to your swf when trace actions are omitted in publish settings.
± The Fuse sequencer is for building longer, more complex
timelines of tweens & events.
- Everything that can be done in Fuse can be done in other ways; the magic of Fuse is its ability to reduce and simplify your
code. Fuse is best utilized for applications that need to mix motion with programmatic content or dynamic elements. ± example
- Fuse is NOT the same thing as ZigoEngine. Don't use Fuse for individual tweens like rollovers! ± Why?
- Fuse's standard usage is called Object Syntax, because you use Objects and Arrays to define action lists. Actions are
composed of animation and event elements. ± more
- Fuse has a secondary option called Simple Syntax, which was originally designed to give beginning coders a simple way
to be able to chain shortcut-tweens into sequences. ± more
- Fuse is not a total replacement for Flash's timeline. ± more
- For information on Fuse and asynchronous events, see the Fuse constructor documentation.
- The kit provides an easy way to call out relative tweens (calculated against the property's existing value): Simply set
the value to a string instead of a number. For instance tweening x to "10" or "-10" would slide the target
10 pixels from its current position.
Next Steps
- Beginners are encouraged to start with shortcut tweens, then add the small handful of commands knows as Fuse Simple Syntax
- both are very easy to learn, even for non-coders. You'll want to look up the setup command ZigoEngine.simpleSetup and look
at the Shortcuts documentation.
- Programmers are encouraged to learn the fundamentals of the kit: ZigoEngine.doTween and Fuse Object Syntax, then
add Shortcuts into the mix you want.
- Everyone can follow these paths starting from the introductions to the ZigoEngine and Fuse classes
in the docs, and reading the Primer PDF linked from the Fuse website.