# gotoAndPlay on nested movieclips?

**URL:** <https://forum.kirupa.com/t/gotoandplay-on-nested-movieclips/272472>\
**Category:** Uncategorized\
**Created:** [October 5, 2008, 5:45pm UTC](https://forum.kirupa.com/t/gotoandplay-on-nested-movieclips/272472 "2008-10-05T17:45:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shadysquirrel](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Shadysquirrel](https://forum.kirupa.com/u/Shadysquirrel)\
**Post date:** [October 5, 2008, 5:45pm UTC](https://forum.kirupa.com/t/gotoandplay-on-nested-movieclips/272472/1 "2008-10-05T17:45:52Z")

</div>

Greetings,

I appreciate you taking the time to look at this problem i am having.  
I am still transfering from AS2 to AS3 and right now i am having a very annoying problem.

THE STRUCTURE:  
Maintimeline contains 2 buttons that i want to use to access children in a bunch of movieclips.  
rectangle\_mc has circle\_mc circle\_mc contains xx\_mc xx\_mc contains wtf\_mc

```auto

stop();

function playTimeline (evt:MouseEvent):void {
    this.rectangle_mc.gotoAndPlay(2);
}
start_btn.addEventListener (MouseEvent.MOUSE_DOWN, playTimeline);

/*This code errors out*/
    function EndTimeline (evt:MouseEvent):void{
        this.rectangle_mc.circle_mc.xx_mc.wtf_mc.gotoAndPlay(2);
}
stop_btn.addEventListener (MouseEvent.MOUSE_DOWN,EndTimeline);

```

placed on frame 1 on maintimeline

Why can’t flash see my nested movieclips? I remember in AS2 you could go down the line:  
\_root.movieclipA.movieclipB.movieClipC.movieclipD.movieclipE.gotoAndPlay(frame#);

Any Help Appreciated Thanks,

Shadysquirrel
