Flash CS5, AS3, Stop Drag, Add Up Release for a separate function
Using AS3 in Flash CS5, I have a movie clip where I've placed start drag and stop drag actions, and I'd like to activate a button action (run a movie clip named person_mo) with the ReleaseToDrop function. However, I do not know how to add the right code snippet or code it correctly. Here is the AS I have for the drag:
stop();
/* Drag and Drop Makes the specified symbol instance moveable with drag and drop. */
SCOPE2.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
function fl_ClickToDrag(event:MouseEvent):void
{
SCOPE2.startDrag();
}
stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
function fl_ReleaseToDrop(event:MouseEvent):void
{
SCOPE2.stopDrag();
}
How can I play the person_mo movie clip and stop the drag?
