# Trigger external swf to load into main swf from button in another external swf

**URL:** <https://forum.kirupa.com/t/trigger-external-swf-to-load-into-main-swf-from-button-in-another-external-swf/223447>\
**Category:** Uncategorized\
**Created:** [April 22, 2007, 10:26pm UTC](https://forum.kirupa.com/t/trigger-external-swf-to-load-into-main-swf-from-button-in-another-external-swf/223447 "2007-04-22T22:26:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![exxie](https://avatars.discourse-cdn.com/v4/letter/e/34f0e0/32.png) [@exxie](https://forum.kirupa.com/u/exxie)\
**Post date:** [April 22, 2007, 10:26pm UTC](https://forum.kirupa.com/t/trigger-external-swf-to-load-into-main-swf-from-button-in-another-external-swf/223447/1 "2007-04-22T22:26:09Z")

</div>

I’m really stuck with this and it seems like such a simple problem to solve.

I am trying to get a nav button in one movie (main\_nav.swf) to target a my main movie (index.swf) and load a sub nav movie (metals\_subnav\_infinite.swf) into it. The sub nav movie will do a similar task - loading a portfolio swf into main movie (index.swf).

Here is the file breakdown of my working files:

index.swf - main final movie which loads “main\_nav\_infinite3.swf” on start

main\_nav\_infinite3.swf - loads main nav “main\_nav.swf” and scrolls it infinitely (infinite menu)

main\_nav.swf - main nav with buttons that trigger sub nav “metals\_subnav\_infinite.swf” to load into index.swf

metals\_subnav\_infinite.swf - loads sub nav “metals\_subnav.swf” and scrolls it infinitely

metals\_subnav.swf - sub nav with buttons that trigger “folio.swf” (have not created this file yet!) to load into “index.swf”

The script I was focusing on is in main\_nav.fla and it is:

metals\_mc\_bn.onRelease = function() {  
reActivateMenu();  
this.gotoAndStop(3);  
this.enabled = false;  
\_level1.sub\_nav\_content\_mc.loadMovie(“metals\_subnav\_infinite.swf”);  
};

I haven’t yet activated all the buttons yet just the “Metals” button as the first to get working.

I have attached the FLAs.

exxie!
