Remove object at a specific coordinate

I want to remove an object at a specific (global x/y) location, but can’t figure out how, any ideas? Not sure if it makes a difference but the potential object that will be at the location will not be part of a group.

thanks

[import]uid: 36590 topic_id: 8119 reply_id: 308119[/import]

I’m assuming here you don’t know what object is at those coordinates so you need to find that out. There are many approaches, most of which depend on looping through your objects to check their location. So what you need to do is put all your moving objects into a table and then loop through that table.

My hitTestObjects() function may be helpful to you, but depending on your exact use case it may not be necessary:
http://developer.anscamobile.com/code/flashs-hittestobject-emulated-using-contentbounds [import]uid: 12108 topic_id: 8119 reply_id: 28930[/import]

Thanks for your help on this, got it figured out now…and I’m on to the next problem. [import]uid: 36590 topic_id: 8119 reply_id: 29039[/import]