# Access time line from externally loaded swf

**URL:** https://forum.kirupa.com/t/access-time-line-from-externally-loaded-swf/293240
**Category:** flash
**Created:** [July 25, 2009, 6:33pm UTC](https://forum.kirupa.com/t/access-time-line-from-externally-loaded-swf/293240 "2009-07-25T18:33:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kewl\_ken](https://avatars.discourse-cdn.com/v4/letter/k/ebca7d/32.png) [@kewl\_ken](https://forum.kirupa.com/u/kewl_ken)
#### Post date: [July 25, 2009, 6:33pm UTC](https://forum.kirupa.com/t/access-time-line-from-externally-loaded-swf/293240/1 "2009-07-25T18:33:14Z")

</div>

Hi all:  
I am using CS3 with AS3. I have a dropdown menu that I have loaded into an empty movieclip in my main swf. What code do I need to use in order to access the labels on the main swf timeline from my menu or open and close external swf.  
Code to load menu.  
var menuLoader = new Loader();  
menuLoader.load(new URLRequest(‘components/Drop\_Down\_Menu.swf’));  
dropMenu.addChild(menuLoader);

code in menu  
function main1Click(event:MouseEvent):void {  
this.parent.gotoAndPlay(“home”); // causes errors  
}  
mainBtn1.addEventListener(MouseEvent.CLICK, main1Click);

Thank you
