# Accessing Timeline of a Container

**URL:** <https://forum.kirupa.com/t/accessing-timeline-of-a-container/286820>\
**Category:** flash\
**Created:** [April 21, 2009, 1:35pm UTC](https://forum.kirupa.com/t/accessing-timeline-of-a-container/286820 "2009-04-21T13:35:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![polishdude](https://avatars.discourse-cdn.com/v4/letter/p/54ee81/32.png) [@polishdude](https://forum.kirupa.com/u/polishdude)\
**Post date:** [April 21, 2009, 1:35pm UTC](https://forum.kirupa.com/t/accessing-timeline-of-a-container/286820/1 "2009-04-21T13:35:11Z")

</div>

Hi, I don’t understand how to access Timeline of a container correctly, if its nested in another Container etc for Menu buttons:

[SIZE=1]on main stage:

MovieClip Products\_mc , subContainer  
----------------|----------------------------------|---------------------------  
|  
|

```
       var dMenu:MovieClip = new SPC();
       MovieClip(parent).subContainer.addChild(dMenu);
       dMenu.name="nameSPC";

       var eMenu:MovieClip = new crawler();
       MovieClip(parent).subContainer.addChild(eMenu);
       eMenu.name="nameCrawler";
       eMenu.y=50;
         |
         |
         |
         |
         nameSPC and nameCrawler will got to subContainer

```

Code in crawler---------------------------------------------------------------------

addEventListener(MouseEvent.MOUSE\_OVER,buttonOver,false,0,true);

function buttonOver(evt:MouseEvent):void  
{  
gotoAndStop(2);

```
     parent.SPC.gotoAndStop(2); &lt;---- will not work 

```

}[/SIZE]

How can I access the SPC’s TimeLine (its a MovieClip)  
I have tried getchildByName,by Index, saying its MovieClip works only for questioning the parameters of the parameters etc, but it will not get to the TimeLine

I’m lost, pls advise ☹  
I’m reading a book now, but I really can’t find any examples of ‘travelling’ up and down through containers etc and manipulating them

thanks!!
