# Mouse detecting the correct MC

**URL:** <https://forum.kirupa.com/t/mouse-detecting-the-correct-mc/292276>\
**Category:** Uncategorized\
**Created:** [July 12, 2009, 5:56pm UTC](https://forum.kirupa.com/t/mouse-detecting-the-correct-mc/292276 "2009-07-12T17:56:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gencoglu](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@gencoglu](https://forum.kirupa.com/u/gencoglu)\
**Post date:** [July 12, 2009, 5:56pm UTC](https://forum.kirupa.com/t/mouse-detecting-the-correct-mc/292276/1 "2009-07-12T17:56:25Z")

</div>

Hi,  
I am tring to create a “find and destroy” game…  
I have 20 ball shaped movie clips…they move around randomly…I want to click(destroy) the ones having certain names (enemy1,enemy2…enemy8)or having certain color…  
how can I write a function so that can explode them clicking with my mouse .

onClipEvent(enterFrame)//on(Press)  
{  
if(this==enemy1)  
{  
unloadMovie(this);  
//do something;

}

}
