# Accessing a child of a movieClip composed of other movieclips

**URL:** <https://forum.kirupa.com/t/accessing-a-child-of-a-movieclip-composed-of-other-movieclips/294427>\
**Category:** flash\
**Created:** [August 13, 2009, 8:25pm UTC](https://forum.kirupa.com/t/accessing-a-child-of-a-movieclip-composed-of-other-movieclips/294427 "2009-08-13T20:25:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kreender](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@Kreender](https://forum.kirupa.com/u/Kreender)\
**Post date:** [August 13, 2009, 8:25pm UTC](https://forum.kirupa.com/t/accessing-a-child-of-a-movieclip-composed-of-other-movieclips/294427/1 "2009-08-13T20:25:01Z")

</div>

Hi

I made a ship in flash, composed of different movieclips exported for actionscipt, then I converted the whole ship in a movieclip. I wanna access a wing to make it rotate but I don’t know how. I tried this:

```auto
package{
    import flash.display.MovieClip;
    
    public class Prueba extends MovieClip{
        public function Prueba(){
            var nave:Ship = new Ship();
            addChild(nave);
            nave.x = 50;
            nave.y = 50;
            nave.getChildByName("LeftSpacer").rotation = 20;
            
            }
        }
    }

```

but it doesn’t work like that  
what is the correct form of doing that?

thanks for reading
