# Delete anymc at coordinate

**URL:** <https://forum.kirupa.com/t/delete-anymc-at-coordinate/65583>\
**Category:** flash\
**Created:** [September 27, 2004, 11:57pm UTC](https://forum.kirupa.com/t/delete-anymc-at-coordinate/65583 "2004-09-27T23:57:27Z")\
**Posts on this page:** 3\
**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/65583/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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 28, 2004, 11:15am UTC](https://forum.kirupa.com/t/delete-anymc-at-coordinate/65583/2 "2004-09-28T11:15:02Z")

</div>

does onfocus work as well?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 28, 2004, 6:31pm UTC](https://forum.kirupa.com/t/delete-anymc-at-coordinate/65583/3 "2004-09-28T18:31:41Z")

</div>

i gave up and decided to level up and use whiteout
