# How can I get my menu to load external swf's?

**URL:** <https://forum.kirupa.com/t/how-can-i-get-my-menu-to-load-external-swfs/298488>\
**Category:** flash\
**Created:** [October 20, 2009, 1:01am UTC](https://forum.kirupa.com/t/how-can-i-get-my-menu-to-load-external-swfs/298488 "2009-10-20T01:01:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JustLearningAS](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@JustLearningAS](https://forum.kirupa.com/u/JustLearningAS)\
**Post date:** [October 20, 2009, 1:01am UTC](https://forum.kirupa.com/t/how-can-i-get-my-menu-to-load-external-swfs/298488/1 "2009-10-20T01:01:14Z")

</div>

Hi all,

my first post, please excuse any errors.

So, I bought a menu, and it will allow me to load web pages, no problem. But, I am building my site to load swf files into a movieclip named “holder”, and I want this to happen when the menu links are clicked.

Here is an example of the current xml data.

```auto
<button title="Investments" toggleSubMenu="1" url="http://www.google.com/" target="_blank">
			<submenu>
				<subButton title="Services" url="http://www.google.com/" target="_blank"> </subButton>
				<subButton title="Client List" url="http://www.google.com/" target="_blank"> </subButton>
				<subButton title="Our Portfolio" url="http://www.google.com/" target="_blank"> </subButton>
				<subButton title="Company Info" url="http://www.google.com/" target="_blank"> </subButton>
			</submenu>
	</button>

```

I can’t get any support from the menu seller other than the fact that I have to change the subbutton.as file, and the change has o be made in the code below:

```auto
private function onPress()
	{
		
		getURL(node.attributes.url, node.attributes.target); trace("GET URL for subButton");
		if (this != main.currentSubButton)
		{
			main.currentSubButton.reset();
			if(main.currentSubMenu!=main.currentSubMenuAuxiliar)
				main.currentSubMenu = main.currentSubMenuAuxiliar;
			main.currentSubButton = this;
		}
	}
	

```

The problem is, I have absolutely no idea what to change in either file. I would REALLY appreciate some help with this - please remember, I know very little. :sigh:

Oh, don’t know if it makes any difference, but the first frame of my file already loads a swf - here is the code:

```auto
function loadMov(mov):Void {
     holder.loadMovie(mov);
} 

var mcl:MovieClipLoader = new MovieClipLoader();

var mclL:Object = new Object();

mclL.onLoadProgress = function(target,loaded,total) {
	loader.percent.text = Math.round((loaded/total) * 100) + "%";
}

mclL.onLoadInit = function() {
	loader._visible = false;
	loader.percent.text = "";
}

mcl.addListener(mclL);

mcl.loadClip("Flash.Home.swf",holder);

```

Thank you in advance!
