# \[AS3\] How to access child movieclips \[movieclip within a movieclip\]?

**URL:** <https://forum.kirupa.com/t/as3-how-to-access-child-movieclips-movieclip-within-a-movieclip/278567>\
**Category:** flash\
**Created:** [January 2, 2009, 1:08am UTC](https://forum.kirupa.com/t/as3-how-to-access-child-movieclips-movieclip-within-a-movieclip/278567 "2009-01-02T01:08:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayumilove](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ayumilove/32/2532_2.png) [@ayumilove](https://forum.kirupa.com/u/ayumilove)\
**Post date:** [January 2, 2009, 1:08am UTC](https://forum.kirupa.com/t/as3-how-to-access-child-movieclips-movieclip-within-a-movieclip/278567/1 "2009-01-02T01:08:29Z")

</div>

I have made a simple fla that

- add movieClip1 on the stage
- moves the movieClip1 from right to left
- when movieClip1 detects a collision with the mouse, it stops.
- when mouse is not in-contact, it continues to move left to right.

The problem I am facing now is…  
how do I access the movieClip1\_child1\_animation2

By default, when movieClip1 is added into the stage, it play  
movieClip1 -\> movieClip1\_child1 -\> movieClip1\_child1\_animation1

**NOTE: movieClip1\_child1 and movieClip\_child2 are not dynamically added via class/actionscript, its already inside movieClip1**. Same goes with animation1 and animation2 movieclip, both animations are already in the child1 and child2 class.

[http://img100.imageshack.us/img100/5065/ayumimovieclipzf5.png](http://img100.imageshack.us/img100/5065/ayumimovieclipzf5.png)

![](http://img100.imageshack.us/img100/5065/ayumimovieclipzf5.png)
