# Passing MC name in array, then modifying MC

**URL:** <https://forum.kirupa.com/t/passing-mc-name-in-array-then-modifying-mc/161080>\
**Category:** Uncategorized\
**Created:** [August 31, 2005, 7:38pm UTC](https://forum.kirupa.com/t/passing-mc-name-in-array-then-modifying-mc/161080 "2005-08-31T19:38:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![exorxist](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@exorxist](https://forum.kirupa.com/u/exorxist)\
**Post date:** [August 31, 2005, 7:38pm UTC](https://forum.kirupa.com/t/passing-mc-name-in-array-then-modifying-mc/161080/1 "2005-08-31T19:38:44Z")

</div>

Here’s my question. I am storing the names of a bunch of dynamically made MC’s in an array. I then want to pull out the corresponding one to the current position, and change the mc’s alpha.

If I trace the the array,

trace(\_root.mcNameArray[\_root.arrayposition]);

I get the correct MC location

\_root.nav.galleryloader.main.mc21

Now, how can I take that value and modify it’s alpha? I want to take that MC by having something like this:

onClipEvent(enterFrame){  
\_root.mcNameArray[\_root.arrayposition].\_alpha=20;  
}

But it does not perform the alpha change. Any ideas?

Thanks!
