package {
        import flash.display.*;
        import flash.events.*;
        public class graphical extends MovieClip {
                public var mc1:MovieClip = new MovieClip();
                public function graphical() {
                        mc1 = new car_image;
                        mc1.addEventListener("click",click_handler);
                        this.addChild(mc1);
                }
                private function enterFrame_handler(e:Event):void {
                        mc1.x += 3
                }
                private function click_handler(e:Event):void {
                        if(mc1.hasEventListener("enterFrame")){
                                mc1.removeEventListener("enterFrame",enterFrame_handler);
                        } else{
                                mc1.addEventListener("enterFrame",enterFrame_handler);
                        }
                }
        }
}