import mx.transitions.Tween;
import mx.transitions.easing.*;
new Tween(instanceName, property, func, begin, finish, duration, useSeconds);
================================================
this.onMouseDown = function() {
import mx.transitions.Tween;
import mx.transitions.easing.*;
new Tween(ball_mc1,"_alpha",Strong.easeOut,ball_mc1._alpha,Math.random()*100,20,false);
new Tween(ball_mc2,"_alpha",Strong.easeOut,ball_mc2._alpha,Math.random()*100,20,false);
new Tween(ball_mc3,"_alpha",Strong.easeOut,ball_mc3._alpha,Math.random()*100,20,false);
new Tween(ball_mc4,"_alpha",Strong.easeOut,ball_mc4._alpha,Math.random()*100,20,false);
new Tween(ball_mc5,"_alpha",Strong.easeOut,ball_mc5._alpha,Math.random()*100,20,false);
}
//new Tween(movieClip_instanceName, "_alpha", type of tween, starting _alpha, ending _alpha, number of frames to excecute the tween, false(see below);
//If you set the last value above to true, the actionscript uses seconds instead of frames to execute the tween. Example below.
//new Tween(ball_mc5,"_alpha",Strong.easeIn,ball_mc3._alpha,(Math.random()*400)+50,.5,true);
//false = use frames. true = use seconds, so the example above excecutes the tween in 1/2 a second
//the following example uses only number and will fade out fromm 100 to 0 in 20 frames
//new Tween(ball_mc5,"_alpha",Strong.easeOut,100,0,20,false);
//additional comments:
///////////////////////////////////////
//don't forget that your frame rate has a lot to do with how your tween will look.
//try changing out the "type" of tweens to get your desired effect. Options are listed below:
//Elastic.easeOut - "Elastic" = the transition type. "easeOut" = the Method
//Transition types you can use: Back, Bounce, Elastic, Regular, Strong, None.
//Methods you can use are: easeIn, easeOut, easeInOut.
//Enjoy!!!! :)
//www.bittbox.com