var StripShrink = new Tween(FoB, "_yscale", Bounce.easeOut, 95, 0, 10, false);
var textColoring = new ColorTween(TextLine, Strong.easeOut, "current", "663300", 8, false);
var BackShadow = new FilterTween(BoB, new DropShadowFilter(1, 90, 0x000000, .5, 5, 5, 1, 3),"distance",Strong.easeOut,"current",10,20,false);
As you can see there were used three types of Tweens each very simple to understand having to mention the instance of the movie clip it refers to, the property the tween will change, the easing type, the starting value, the ending value, the duration and if the tween starts automatically or not.
As we have chosen false for the autostart property, the tweens will start when having the mouse over:
this.onRollOver = function() {
StripShrink.start();
BackShadow.start();
textColoring.start();
};
this.onRollOut = function() {
StripShrink.reverse(Regular.easeIn);
BackShadow.reverse(Regular.easeOut);
textColoring.reverse(Regular.easeOut);
};
When the mouse is no longer on our button the tweens will be reversed with different easing functions.
Closing
To summarize all that I have achieved through this simple animation I should begin by reminding you that with 6 code lines in 15 minutes or less, without any timeline modification there was created a button animation.
Thank you for reading this tutorial and hope you will find useful this tutorial, and the tool Ive used to make the animated button.
| » Level Intermediate |
|
Added: 2007-05-02 Rating: 6 Votes: 3 |
| » Author |
| By using components you can better manage your time when working on a project. |
| » Download |
| Download the files used in this tutorial. |
| Download (17 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!