hello swishmax users.
I’m proud to present the new version of the easingTweens -
eTweens v2 for swishmax 2
There are some new features and optimizations:
IMPROVEMENTS:
1. code optimized
2. Elastic is now working correctly
3. Elastic and Back has some configurable parameters

NEW:
1. Tween Events – you can use your own user defined functions to invoke any action using a simple syntax:
onTweenStart - when the effect starts, it will invoke the function you’ve defined.
onTweenMotion - while the effect is playing
onTweenFinish - when the effect has finished playing, it will invoke the function that you’ve defined.
, i.e:
if “eTweens” is the name of the component’s movieclip, than:
eTweens.onTweenStart = function()
{
trace(“the effect has started”);
}eTweens.onTweenMotion = function()
{
trace(“Duration now: ” + this.getFramesProgress());
}eTweens.onTweenFinish = function()
{
trace(“The effect has finished”);
}

2. API / functions to reuse the component throughout your swishmax movie. The API for the component includes:
* getFramesProgress()
- returns the current internal “frame”/duration the effect is currently at.If the effect is defined with 30 frames, it will return 5 when it reached the 5th frame. This should not be confused with the actual frame of the timeline.
* getCurrentEffect()
- returns the current selected effect, i.e.
easeInBack
* startPlay(sEffect, xStart, xEnd, yStart, yEnd, nAmount)
- this function gives the power to play the effect whenever you need and to reuse it. you can use it for all the effects (Move, Resize, Scale, Alpha, Rotation).
sEffect – can have these parameters: Move, Size, Scaling, Alpha, Rotation
xStart, xEnd, yStart, yEnd – various parameters for each effect
nAmount – if you want to play the effect fixed amount of times, you should put a number (only when you use the a yoyo effect)
For effects that have lass than 4 parameters, i.e., Alpha, you would use it like that:
eTweens.startPlay(“Alpha”, 10, 70, (nAmount is optional))
Instructions
extract orizen folder which includes the swi and swf files to your swishmax component directory.
open the components window through: Window -> Components
and drag the eTweensV2 component to you’re movie.
If any window pops up asking you to confirm changing properties of the movie, you can press Yes with no problem. just read carefully what it says if your a heavy developer.

To define the various parameters you should open the parameters window through: Window -> Parameters
ObjectPath -
if you leave this parameter empty, the effect will be applied to to movieclip itself. you can use an absolute or relative path to some other object on the stage. I.e., if you have a movieclip on the root names “myMc” you can enter: _root.myMc OR _parent.myMc if the component movieclip is in the same level as myMc movieclip.
Yoyo Effect -
Reverse: infinite back and forth
Loop: infinite forth
Normal: once forth
Enter A Number: fixed times back and forth
None: will not use a yoyo effect
AutoStart -
Giving the effect to start playing the effect when the movie plays automatically.
Download easing tween swishmax component here
latest update: 21.10.2008
easing tweens v2 swishmax component