# Manipulating MCs attached to other MCs

**URL:** <https://forum.kirupa.com/t/manipulating-mcs-attached-to-other-mcs/62840>\
**Category:** flash\
**Created:** [August 31, 2004, 8:23pm UTC](https://forum.kirupa.com/t/manipulating-mcs-attached-to-other-mcs/62840 "2004-08-31T20:23:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boondogger](https://avatars.discourse-cdn.com/v4/letter/b/e274bd/32.png) [@Boondogger](https://forum.kirupa.com/u/Boondogger)\
**Post date:** [August 31, 2004, 8:23pm UTC](https://forum.kirupa.com/t/manipulating-mcs-attached-to-other-mcs/62840/1 "2004-08-31T20:23:04Z")

</div>

How do you address a mc attached to another mc?

I have an array of movie clips some of which I have attached additional movie clips to. Now I need to alter scale/alpha etc of those additional movie clips.

ie.

for (i=0;i\<BasicMCArray.length;i++) {  
\_root.BasicMCArray\*.attachMovie(“myExtraMc”,“ExtraMC” + i,depth++);  
}

How do I now manipulate the “ExtraMC” movie clips? I know I can use  
\_parent to get at the parent mc but how do I get at the “child” when names are dynamically created as above?

Any advice would be much appreciated!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 31, 2004, 8:53pm UTC](https://forum.kirupa.com/t/manipulating-mcs-attached-to-other-mcs/62840/2 "2004-08-31T20:53:29Z")

</div>

> [@Boondogger](#):
>
> How do you address a mc attached to another mc?
> 
> I have an array of movie clips some of which I have attached additional movie clips to. Now I need to alter scale/alpha etc of those additional movie clips.
> 
> ie.
> 
> for (i=0;i\<BasicMCArray.length;i++) {  
> \_root.BasicMCArray\*.attachMovie(“myExtraMc”,“ExtraMC” + i,depth++);  
> }
> 
> How do I now manipulate the “ExtraMC” movie clips? I know I can use  
> \_parent to get at the parent mc but how do I get at the “child” when names are dynamically created as above?
> 
> Any advice would be much appreciated!

couple of ways here

for (i=0; i\<BasicMCArray.length; i++) {  
myClip = \_root.BasicMCArray\*.attachMovie(“myExtraMc”, “ExtraMC”+depth, depth++);  
myClip.\_alpha = 50;  
// can use this too \_root.BasicMCArray\*[“ExtraMC”+depth].\_alpha = 100;  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 31, 2004, 10:15pm UTC](https://forum.kirupa.com/t/manipulating-mcs-attached-to-other-mcs/62840/3 "2004-08-31T22:15:14Z")

</div>

stringy you are my saviour!

thanks so much! I’m really far too dense for what I’m trying to do. Still,I shall try not to wear out my welcome on this forum for a while now.

Thanks again

Boondogger
