package{ import flash.display.*; import flash.events.*; public class BadGuy extends MovieClip{ public function BadGuy(){ this.addEventListener(Event.ENTER_FRAME, updateStatus); } public function updateStatus(e:Event):void{ if(this.currentLabel == "flightDone"){ this.stop(); }else if(this.currentLabel == "explodeDone"){ this.stop(); this.x = -1; this.y = -1; } } public function updatePosition(newX:uint):void{ this.x += newX; } } }