Loading a movie via xml and variables

I have recently started a new project in which nearly everything in the flash document is controlled by an xml sheet. I want to be able to use the xml to tell the flash how to path to certain locations. As an example:

I am using a variable created upon the loading of an xml sheet, called “mousepath”, to tell flash how to get to a mouse .swf movie. Here is the current code:

my_xml = new XML();
my_xml.load(“my flash site.xml”);
my_xml.ignoreWhite = true;
my_xml.onLoad = function(loading) {
if (loading) {
my_flash_site = my_xml.firstChild;
mousepath = my_flash_site.firstChild.firstChild;
this.mouse_mc.loadMovie(mousepath, this.mouse_mc.controller_mc);

And the xml sheet:

<?xml version=‘1.0’?>

This, of course, doesn’t work. I have even run a trace, and it came up with:


I input this into into the area where mousepath is, and the mouse.swf movie loads perfectly. I really would like for it to be able to load the path from the xml sheet, but it just won’t work. I could really use some help on this.