Posted
Filed under Action Script

[원문] : http://www.isgoodstuff.com/2008/06/10/actionscript-30-buttons-and-drag-drop/
 
actionscript 3.0에서 ....

MovieClipName.addEventListener(MouseEvent.MOUSE_DOWN,DragStart);
MovieClipName.addEventListener(MouseEvent.MOUSE_UP,DragStop);
function DragStart(event:Event){
	trace("Drag Started!");
	event.target.startDrag(false);
}
 
function DragStop(event:Event){
	trace("Drag Stoped!");
	event.target.stopDrag();
}
2010/04/20 15:44 2010/04/20 15:44