# Arrays with movieclips

**URL:** <https://forum.kirupa.com/t/arrays-with-movieclips/164159>\
**Category:** flash\
**Created:** [September 28, 2005, 10:12pm UTC](https://forum.kirupa.com/t/arrays-with-movieclips/164159 "2005-09-28T22:12:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmart](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@cmart](https://forum.kirupa.com/u/cmart)\
**Post date:** [September 28, 2005, 10:12pm UTC](https://forum.kirupa.com/t/arrays-with-movieclips/164159/1 "2005-09-28T22:12:27Z")

</div>

Hi,  
I have a bunch of mc’s that I’d like to fade out when a button is rolled-over. I’d then like the mc’s to return to alpha = 100 when the button is rolled-out. instead of listing all of the mc’s, I thought I’d create an array with all of the mc’s instance names and then reference the array in my .\_alpha function. Problem is, when I trace my array, it’s not tracing which obviously means I haven’t coded the AS properly.

I’ve searched for help with arrays but it seems most array tutorials just focus on strings and not mc’s (my array works when I add quotation marks but then it’s referencing strings and not objects). Can someone show me the proper code to make this work??

thanks
