Forum Moderators: open
function pickUp(event:MouseEvent):void {
event.target.startDrag();
}
But that doesn't work for me. It only works if I specify the actual movieclip name such as:
function pickUp(event:MouseEvent):void {
myMovieClip.startDrag();
}
Does anyone know why the first snippet doesn't work? I really want to be able to use that so I don't have to have several dozen functions that do the same thing.