# Passing xml files to swfs?

**URL:** https://forum.kirupa.com/t/passing-xml-files-to-swfs/100783
**Category:** Uncategorized
**Created:** [February 2, 2004, 11:23am UTC](https://forum.kirupa.com/t/passing-xml-files-to-swfs/100783 "2004-02-02T11:23:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mindfriction](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mindfriction/32/172_2.png) [@mindfriction](https://forum.kirupa.com/u/mindfriction)
#### Post date: [February 2, 2004, 11:23am UTC](https://forum.kirupa.com/t/passing-xml-files-to-swfs/100783/1 "2004-02-02T11:23:06Z")

</div>

Hi, Thanks for taking the time to look at my thread, I hope the title of this thread wasnt too confusing but here’s what Im TRYING to achieve…

Ive searched the forums, but im puzzled. Can someone talk me through this please…

I have a main movie with a dynamically created menu (uses data gathered from an XML file). Each menu item has an Action and Variables associated with this action.

```auto

<?xml version="1.0"?>
<menu name="mainmenu">
	<item name="Home" action="gotoURL" variables="http://www.something.com/index.html"/>
	<menu name="Gallery">
		<item name="graduation" action="loadSlideShow" variables="graduation.xml"/> 
	</menu>
	<menu name="Links">
		<item name="Google" action="gotoURL" variables="http://www.google.com"/> 
	</menu>

```

```auto

(snippet of related functions in AS)
Actions = Object();
Actions.gotoURL = function(urlVar) {
	getURL(urlVar, "_blank");
};
Actions.loadSlideShow = function(dataFileName){
	var = "photoGallery.swf"+dataFileName;
	loadMovieNum(var,"content_mc","POST");
};

```

Now as you can see from my XML file above one of my menu options is a photo gallery. What I would like to to is have one swf, i.e. photoGallery.swf, and load this into an empty movie clip called content\_mc and pass it different XML files (same format, but different content). (see my loadSlideShow() function)

Can anyone give me any ideas on how to do this?
