Xlm menu help

Hi there,

I am having xml dynamic menu in the main.swf , now i want to load an enternal swf in main.swf on clicking on clicking dynamic menu

menu load movie location

about us aboutus.swf main.swf
services services.swf main.swf

Please if some could help me with an example will be very helpful.
thanks

var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(success:Boolean) {
	if (success) {
		for (var i = 0; i<this.firstChild.childNodes.length; i++) {
			tmpMC = _root.createEmptyMovieClip("menuItem"+i, _root.getNextHighestDepth());
			tmpTxt = tmpMC.createTextField("menuItemText", 1, 25, 25+50*i, 150, 40);
			tmpTxt.text = this.firstChild.childNodes*.attributes.description;
			tmpMC.movieUrl = this.firstChild.childNodes*.attributes.movieUrl
			tmpMC.onRelease = function() {
				if(!_root.container) {
					_root.createEmptyMovieClip("container", this.getNextHighestDepth());
				}
				container.loadMovie(this.movieUrl);
			};
		}
	} else {
		trace("error loading xml file");
	}
};
myXML.load("menu.xml");

menu.xml uses this structure… it need more things as encoding and such…

<menu>
	<item description="About us" movieUrl="about.sfw" />
	<item description="Services" movieUrl="services.sfw" />
</menu>

I suppose that you actualy are running main.swf and executing that code from there… at least I understood it that way…

@ mathew.er thank you very much its working fine.
related to this issue i have another two question.

(1) from the xml menu can i play 2nd frame of aboutus.swf?
eg.something like gotoAndPlay(2); (of an external movie such as aboutus.swf)

(2) The clients wants me to disable all the menu while the external movie is loading and enable all the menu when the movie is loaded.

Please help. I guess i am being a pain, But sorry i am very bad at AS.