pbryd
07-12-2009, 06:04 PM
Hello Guys
I've got various movie clips on my stage and a small graphic of a waste bin in the bottom right hand corner.
I can drag the movie clips around the stage with...
function mouseDownHandler(evt:MouseEvent):void {
var object = evt.target;
object.startDrag();
}
I'd like to drag the movieclips to the bin and have them removed from the stage.
The bin is at the bottom corner of the stage so I'm thinking along the lines of
if x > 300 and y > 300 then remove child.
Can someone advise me on this?
Phil
I've got various movie clips on my stage and a small graphic of a waste bin in the bottom right hand corner.
I can drag the movie clips around the stage with...
function mouseDownHandler(evt:MouseEvent):void {
var object = evt.target;
object.startDrag();
}
I'd like to drag the movieclips to the bin and have them removed from the stage.
The bin is at the bottom corner of the stage so I'm thinking along the lines of
if x > 300 and y > 300 then remove child.
Can someone advise me on this?
Phil