**Updated! – added more parameters/features.
Just wrote this small snippet of code right now shows how simple it is to get this moving with AS3 and and a OOP methodology. that’s it enjoy
/*///////////////////////////////////////////////////
Animate Script | by Kurt Grung - 3L3373.com
Usage:
---
"mc" movieClip = obj:Object
"type" x,y,alpha,rotate = prop:String
"style" Strong.easeOut = func:Function
"str" = begin:Number
"fin" = finish:Number
"len" = duration:Number [,useSeconds:Boolean=false]
See below for examples of use;
///////////////////////////////////////////////////*/
//imports
import fl.transitions.*
import fl.transitions.easing.*
//funtion
function animate(mc:MovieClip, type:String, style:Function, str:Number, fin:Number, len:Number){
//
var tween:Tween;
tween = new Tween(mc, type, style, str, fin, len, true);
}
//animations
animate(mc, "x", Strong.easeOut, -20, 300, .90 );
animate(mc, "y", Elastic.easeOut, -20, 200, .90 );
animate(mc, "alpha", Strong.easeOut, 0, 1, 3.5 );
Tags: Actionscript animation, Animation in Flash, AS3, Flash, Object Oriented Programming, OOP














