# Delete anymc at coordinate

**URL:** <https://forum.kirupa.com/t/delete-anymc-at-coordinate/123845>\
**Category:** Uncategorized\
**Created:** [September 27, 2004, 11:57pm UTC](https://forum.kirupa.com/t/delete-anymc-at-coordinate/123845 "2004-09-27T23:57:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veryfine007](https://avatars.discourse-cdn.com/v4/letter/v/b9e5f3/32.png) [@Veryfine007](https://forum.kirupa.com/u/Veryfine007)\
**Post date:** [September 27, 2004, 11:57pm UTC](https://forum.kirupa.com/t/delete-anymc-at-coordinate/123845/1 "2004-09-27T23:57:27Z")

</div>

I’m creating something like a text editor. I have text-movieclips at set coordinates. I’m trying to create a function to delete entries.  
My idea is that my cursor is at the text-mc’s coordinate so I’d like to be able to connect the delete key to any clip that happens to match my cursor(x,y). Like this:

if ((Key.getCode() == Key.DELETEKEY)){  
if((anytxtclip == cursor.\_x) && (anytxtclip == cursor.\_y)) {  
delete anytxtclip  
}}

I think I’m looking for a world variable to describe anytxtclip.
