Multiple external SWFs? does this look okay?

You AS gurus… does this look okay? Is there any reason why it wouldn’t work?


on (release) {
var lo = new Object();
var lo2 = new Object();
var mcl = new MovieClipLoader();
var mc2 = new MovieClipLoader();
mcl.addListener(lo);
mc2.addListener(lo2);
lo.onLoadInit = function() {
};
mcl.loadClip(Link_txt0, "_root.mainMovie");
button_mc.onRelease = function() {
};
lo2.onLoadInit = function() {
};
mc2.loadClip(LinkA_txt0, "_root.mainMovieA");
button_mc.onRelease = function() {
};
 
}

And if this is my XML file:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE data[
 <!ELEMENT title (comments, link, image, sound)>
 <!ATTLIST title name CDATA #REQUIRED>
 <!ELEMENT comments (#PCDATA)>
 <!ELEMENT link (#PCDATA)>
 <!ELEMENT image (#PCDATA)>
 <!ELEMENT linkA (#PCDATA)>
]>
<data>
 <title name="Name">
  <comments>Text Info</comments>
  <link>filename.swf</link>
  <image>images/imageName.jpg</image>
  <linkA>filename2.swf</linkA>
 </title>
</data>

Are my subnode #s on here set up okay? It doesn’t seem to be working… and I’m not sure where the problem is.

//Create the XML Object
myXML = new XML()
myXML.ignoreWhite = true
//Load XML file
myXML.load("seminars.xml?cachebuster=" + new Date().getTime());
//Make a reference to current timeline
myXML.ref = this
// Parse XML and fetch
myXML.onLoad = function(success){ 
if(success){ 
var root = this.firstChild ;
nodes = root.childNodes 
for(var i=0; i<nodes.length; i++) { 
this.ref["Title_txt"+i].text = nodes*.attributes.name 
subnodes = nodes*.childNodes 
this.ref["Comments_txt"+i].text = subnodes[0].firstChild.toString() 
this.ref["Link_txt"+i].text = subnodes[0].firstChild.toString() 
this.ref["Link_txt"+i] = subnodes[1].firstChild.toString()
this.ref["holder_mc"+i].loadMovie(subnodes[2].firstChild.toString())
this.ref["LinkA_txt"+i].text = subnodes[0].firstChild.toString() 
this.ref["LinkA_txt"+i] = subnodes[3].firstChild.toString()
this.ref["holderA_mc"+i].loadMovie(subnodes[4].firstChild.toString())
} 
} else trace("Error loading XML document") 
} 

Any help appreciated! Thanks in advance all!

-filmgrrl