package {
        import flash.display.MovieClip;
        import flash.events.MouseEvent;
        public class DragDrop extends MovieClip {
                public function DragDrop() {
                        dragme.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
                        dragme.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
                }
                private function mouseDownHandler(evt:MouseEvent):void {
                        var obj = evt.target;
                        obj.startDrag();
                }
                private function mouseUpHandler(evt:MouseEvent):void {
                        var obj = evt.target;
                        obj.stopDrag();
                }
        }
}