# Acting on child movie clip (again with the starting over)

**URL:** <https://forum.kirupa.com/t/acting-on-child-movie-clip-again-with-the-starting-over/273470>\
**Category:** Uncategorized\
**Created:** [October 15, 2008, 9:09pm UTC](https://forum.kirupa.com/t/acting-on-child-movie-clip-again-with-the-starting-over/273470 "2008-10-15T21:09:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![graylensman](https://avatars.discourse-cdn.com/v4/letter/g/5f9b8f/32.png) [@graylensman](https://forum.kirupa.com/u/graylensman)\
**Post date:** [October 15, 2008, 9:09pm UTC](https://forum.kirupa.com/t/acting-on-child-movie-clip-again-with-the-starting-over/273470/1 "2008-10-15T21:09:50Z")

</div>

Once more, lost in translation from AS2 to AS3:

In AS2 i can write a function that will affect the child mc of a parent mc. I can change the name of parent mc’s, and using “this” I can still affect the child:

```auto
//I've been using Fuse for stuff...
function changeColor(fillColor){
this.childMC.colorTo(fillColor);
}

parent1.onRollOver=function(){
changeColor("0x000000")
}
parent2.onRollOver=function(){
changeColor("0xFFFFFF")
}

```

and so on.

Now, I’ve learned some AS3 stuff, about using switch statements to call a function on multiple targets:

```auto
//as3, 
function showCover(e:Event):void{
    var target:DisplayObject=e.currentTarget as DisplayObject;
    
    switch(target){
        case btn1:
        loadImage("sw_covers/episodeI.jpg");
        break;
        
        case btn2:
        loadImage("sw_covers/episodeII.jpg");
        break;
        }
}

```

but how to access the child mc within? Nothing I’ve tried works.

thanks for helping out an old-time-noob.
