Creating a trash bin mask to removechild

Hello,

I’m learning AS3 and I’m doing pretty well at the moment but I’ve got stuck at a point I can’t seem to get past or work out a way to do it. After a few hours of googling I’ve decided to pick the brains of KIRUPA forum.

Basically I dynamically create a dozen movieclips. Now I have drag and drop events on these clips and I want to be able to drag a movieclip, drop it onto a trashbin movieclip that i’ve named ‘trash’ which would then removeChild the movieclip i’ve just dropped it ontop of.

How would I go about doing this?

So let me recap and simplify.

If movieclip A is dragged ontop of movieclip B remove movieclip A.

Hope that makes sense

Cheers

EvraLive