getting an error 1046: Type was not found or was not a compile-time constant: TweenEvent.
my code now:
package {
import flash.display.MovieClip;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.motion.Animator;
import flash.geom.ColorTransform;
public class Cloud extends MovieClip {
var cloud_animator:Animator;
function Cloud():void {
}
floatTween.addEventListener(TweenEvent.MOTION_FINISH,remove)
private function remove(e:TweenEvent) {
e.target.parent.removeChild(e.target)
}
public function float():void {
var myDate:Date = new Date();
var myTime = myDate.getHours()
var floatTween = new Tween(this, "x", None.easeNone, 640, -400, 8, true);
}
}
}
I would rather not use a 3rd party program, but i’m getting my tired of trying to figure this out. just give me the details!