Hit Test Woes

Hey everyone -

I’m building an application that basically counts objects that are placed in a drop-zone. When the mouse button is released, the script checks to see if the mouse x and y coords are within the drop zone, and if so it will increase the count.

This all works fine, unless the object being dropped is placed on another object already in the drop-zone, and is of a lower Depth than the already dropped object. If that is the case the mouse will not release the object, and the count will not increase.

Does anyone have any ideas of how to get around this other than making an onEnterFrame loop that checks all possible objects and sees if the selected object is touching then, and if so will swap their depths?

TJ