//CAT is the instance name of the MC CAT.buttonMode=true; CAT.addEventListener(MouseEvent.MOUSE_OVER, OverHandler); CAT.addEventListener(MouseEvent.MOUSE_OUT, OutHandler); CAT.addEventListener(MouseEvent.MOUSE_DOWN, DownHandler); CAT.addEventListener(MouseEvent.MOUSE_UP, UpHandler); function OverHandler(e:Event):void{ CAT.alpha=1.0; } function OutHandler(e:Event):void{ CAT.alpha=0.5; CAT.gotoAndStop(1); } function DownHandler(e:Event):void{ Mouse.hide(); CAT.startDrag(); CAT.addEventListener(MouseEvent.MOUSE_MOVE, MoveHandler); } function UpHandler(e:Event):void{ //trace("you let go of me"); Mouse.show(); CAT.stopDrag(); CAT.removeEventListener(MouseEvent.MOUSE_MOVE, MoveHandler); } function MoveHandler(e:Event):void{ if(CAT.x<100 && CAT.y<100){ CAT.gotoAndStop(2); }else if(CAT.x<200 && CAT.x>100 && CAT.y<100){ CAT.gotoAndStop(3); }else if(CAT.x<100 && CAT.y>100 && CAT.y<200){ CAT.gotoAndStop(4); }else if(CAT.x>100 && CAT.y>100 && CAT.y<200){ CAT.gotoAndStop(5); } else{CAT.gotoAndStop(1); } }