# Question on mc.onRelease

**URL:** <https://forum.kirupa.com/t/question-on-mc-onrelease/240711>\
**Category:** flash\
**Created:** [October 5, 2007, 8:27am UTC](https://forum.kirupa.com/t/question-on-mc-onrelease/240711 "2007-10-05T08:27:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nutcase88](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@nutcase88](https://forum.kirupa.com/u/nutcase88)\
**Post date:** [October 5, 2007, 8:27am UTC](https://forum.kirupa.com/t/question-on-mc-onrelease/240711/1 "2007-10-05T08:27:45Z")

</div>

Hi again, im using actionscript to create a grid. Now that ive used a for loop and named the squares grid1 to gridxx (where x is any number from 100-10000), im not sure how to create a onRelease function that once i click on a specific movie clip, the clip would disappear.

Which brings me to this question, how would i go about coding the same thing for 100-10000 grids. Please advise, i dont think anyone would copy paste the same line thousands of times.

Thanks in adv!
