neoteam
07-29-2008, 12:57 AM
basically i want the getURL action on holder_mc and Title_txt, any idea ?
myXML = new XML()
myXML.ignoreWhite = true
myXML.load("xml.php")
myXML.ref = this
myXML.onLoad = function(succes){
if(succes){
var root = this.firstChild
nodes = root.childNodes
for(var i=0; i<nodes.length; i++) {
this.ref["Title_txt"+i].text = nodes[i].attributes.name
subnodes = nodes[i].childNodes
this.ref["Comments_txt"+i].text = subnodes[0].firstChild.toString()
this.ref["Title_ville"+i].text = subnodes[3].firstChild.toString()
this.ref["holder_mc"+i].loadMovie(subnodes[1].firstChild.toString())
}
}
else trace("Error loading XML document")
}
stop()
Thanks a lot in advance
myXML = new XML()
myXML.ignoreWhite = true
myXML.load("xml.php")
myXML.ref = this
myXML.onLoad = function(succes){
if(succes){
var root = this.firstChild
nodes = root.childNodes
for(var i=0; i<nodes.length; i++) {
this.ref["Title_txt"+i].text = nodes[i].attributes.name
subnodes = nodes[i].childNodes
this.ref["Comments_txt"+i].text = subnodes[0].firstChild.toString()
this.ref["Title_ville"+i].text = subnodes[3].firstChild.toString()
this.ref["holder_mc"+i].loadMovie(subnodes[1].firstChild.toString())
}
}
else trace("Error loading XML document")
}
stop()
Thanks a lot in advance