Drag and Drop Application

Hi,

I’m currently trying to create an application whit some drag and drop functionality but I’m having a hard time trying to figure how this can be done.

What I have is basically a rectangular MovieClip which will be the main container where multiple smaller rectangular MovieClips are going to be dropped the thing is the that the same movieClip can be dropped multiple times and of course it needs to be at a different position and here is where I’m confused, I know how to create the drag and drop actions, what I don’t know is how to check and see if the main container has movieClips to determine the next available space and place the next movieClip accordingly basically drop it at the bottom. The way I’m currently doing it only works if the same movieClip is drop only once if I drop the same movieClip twice it basically overlaps on top of the first one.

Can someone help me and give me some guidance or direct me where I can find this information?

Please see image for more details.

As always thanks a lot!