Easing Tweens V2 [swishmax component]
by Oren Farhi on October 21, 2008
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.
Buy Now easing tween v2 swishmax component
Buy 3 Components Bundle
Buy a bundle of 3 orizen designs components and save money!
Special Premium Swishmax Template Offer!!!
Get Orizen Designs V2 Swishmax Website for just 49.99!!!
This package includes: SWI source files, php files for contact page, dynamic news, dynamic portfolio and auto date for the footer.
2 comments
[...] every 2 handles should have a modifier – handle1 and handle2 has mod1. Modifiers are actually my eTweens component – but can be any animated object. This movie requires Flash Player [...]
by orizens.com » Blog Archive » Shape Tween Component - BETA 1 [swishmax component] on March 26, 2009 at 5:48 pm. #
[...] the end result of a small swf file effect. A new public API is available for actionscript as in Easing Tweens 2 Component (example for the flash carousel actionscript API using is included inside the component). This [...]
by Orizen Designs - Pure Insight - Freelance of all related to web - Web Design, Development, Flash, Flex, Swishmax » Blog Archive » 3dCarousel version 2 component for swishmax [component] on May 6, 2009 at 7:29 pm. #