import com.threeWingedFly.* /** * tweening class * @class Tweener * @author DI */ class Tweener { //Declarations private var _className = 'Tweener'; //Constructor function Tweener(target_mc:MovieClip,property:String,start:Number,end:Number,frames:Number,func:Function,callBack:Function) { //create the movie clip for doing the tween //var depth = MovieClipUtils.getNextDepth(); var depth = target_mc.getNextHighestDepth(); var clip_mc:MovieClip = target_mc.createEmptyMovieClip('tweener'+depth,depth); clip_mc.target_mc = target_mc; clip_mc.property = property; clip_mc.start = start; clip_mc.end = end; clip_mc.frames = frames; clip_mc.time = 0; clip_mc.func = func; clip_mc.callBack = callBack; clip_mc.onEnterFrame = function () { //do the tween if(this.time