How to determine a list of objects at a given screen coordinate

Is it possible to determine a list of objects that overlap a given screen location in order to be able to target them with a custom event (dispatchEvent).

e.g.

for each object at x,y
do
object.dispatchEvent( event )
done [import]uid: 51968 topic_id: 8953 reply_id: 308953[/import]

If you’re just wanting to know if it’s possible, then yes, that is definitely possible to calculate. If you’re wondering how, then it all depends on if your project needs fall into two different scenarios:

If you’re looking for objects that share a specific x/y coordinate, then yes, that’s very simple to do with a for loop checking the x/y position of each object, seeing if it matches your target x/y coordinates.

However, if you want to see if objects are touching that specific x/y coordinate while their actual positions vary, within your for loop, you’ll have to mark the top-left and bottom-right coordinates of each object (get that with the object’s width/height and current position, depending on it’s reference point) and then manually check to see if you target x/y position falls somewhere in between. [import]uid: 52430 topic_id: 8953 reply_id: 32759[/import]

Here’s a function I put on Code Exchange that does basically the second scenario he described:
http://developer.anscamobile.com/code/flashs-hittestobject-emulated-using-contentbounds [import]uid: 12108 topic_id: 8953 reply_id: 33106[/import]

Thanks, that’s part of what I was looking for. The other part was a bit more basic and that was getting the list of display objects in the first place. Found through getCurrentStage().
[import]uid: 51968 topic_id: 8953 reply_id: 33224[/import]