Updates to version .120
- Added support for tweening TextFields using all the MovieClip extensions (except frameTo)
- my_txt.alphaTo(100, 3); // fades the textfield itself
-
New extensions
-
sizeTo()
- tintTo(rgb,percent)
- invertColorTo(percent)
- pauseTween(props) - specific targets & props
- unpauseTween(props)
- isTweenPaused(prop)
- isTweening(prop) [added specific prop checker]
- pauseAllTweens() [globally from a clip]
- unpauseAllTweens()
- stopAllTweens()
- ffTween(props)
- rewTween(props)
-
Added properties filters to most new methods and one old one (isTweening(prop)), to allow individual properties to be queried. For instance you can query whether _x specifically is tweening in a clip or pause just _y while other props continue to run.
- Pass a string instead of a number for relative value.
- scaleTo('-20'); meaning 20 less than current scale.
-
New option to pass a single end value for multiple properties
- my_mc.tween(['_alpha','_xscale'],100); // legal
- New option to pass a comma-delimited string of properties instead of an array
- my_mc.tween('_alpha,_xscale',100); // legal
- New option to pass a string for function in callback object, if scope is also defined
- {scope:_controllerObj, func:"onSubTransDone"}
-
Added a global function getColorTransObj() to handle the advanced color calcs for extensions
- this exposes the functionality for use elsewhere. Look up the function in lmc_tween.as for details.
Changes to tweenManager.as
- Added new cleanUp() routine to tweenManager
- auto-delete tweens when targets go missing (removeMovieClip etc.)
- fewer glitches when re-testing movie locally after it’s published
- Added onTweenInterrupt event
-
All events now pass an object { target:obj, props:Array }
- Modified autoStop property to stop all tweens in a clip.
- In the previous version, this was done anyway (with autoOverwrite) so autoStop didn't have much purpose. This new functionality might be helpful in that it fully stops a clip's tweens before applying a new tween.
- New controllerDepth getter/setter - changes the depth of the onEnterFrame broadcast clip.
See tweenManager documentation for more details on these updates.
Fuse tween-sequencing kit
The Fuse kit, developed in conjunction with this update, is a powerful & simple way to quickly build motion sequences. (And for more advanced users, timed function-call sequences). An earlier beta of Fuse has already been used on a number of high-profile corporate websites.
Fuse is based on this kit's ultra-efficient tweening engine, and allows you to use the same familiar syntax - alphaTo, slideTo, and all that good stuff. Download at MosesSupposes.com/Fuse
Version .120 updates above by Moses Gunesch