# An efficient way to add a property to multiple movieclips

**URL:** <https://forum.kirupa.com/t/an-efficient-way-to-add-a-property-to-multiple-movieclips/285867>\
**Category:** Uncategorized\
**Created:** [April 7, 2009, 12:52pm UTC](https://forum.kirupa.com/t/an-efficient-way-to-add-a-property-to-multiple-movieclips/285867 "2009-04-07T12:52:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![booglebop](https://avatars.discourse-cdn.com/v4/letter/b/e99b99/32.png) [@booglebop](https://forum.kirupa.com/u/booglebop)\
**Post date:** [April 7, 2009, 12:52pm UTC](https://forum.kirupa.com/t/an-efficient-way-to-add-a-property-to-multiple-movieclips/285867/1 "2009-04-07T12:52:02Z")

</div>

hello,

This should be an easy one. I have several movieclips with instance names (we’ll call them apple\_mc, orange\_mc, bananna\_mc, and peach\_mc. if i wanted to set all of their alphas to 0 i know i could do this:

```auto
apple_mc.alpha=0;
orange_mc.alpha=0;
bananna_mc=0;
peach_mc=0;

```

but if i have say 10 or more movieclips i want to set the alpha for (or any other property) this gets a bit cumbersome. i know there is a more efficient way. maybe an array or for loop for i can’t seem to figure anything out. any help is appreciated.

thanks!
