Question on mc.onRelease

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!