package {
        import flash.display.*;
        import flash.events.*;
        public class graphical extends MovieClip {
                public var mc1:MovieClip = new MovieClip();
                public function graphical() {
                        mc1.graphics.lineStyle(1);
                        mc1.graphics.beginFill(0xff0000);
                        mc1.graphics.drawCircle(200,200,50);
                        mc1.addEventListener("click",click_handler);
                        this.addChild(mc1);
                        mc1.graphics.endFill();
                }
                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);
                        }
                }
        }
}