Ciao a tutti!! Sono disperato...
Sto cercando di inserire nel mio filmato flash un codice che possa caricare un url da un file xml, e che lo abbini ad un bottone o ad un MC... mi spiego meglio.
Partendo da questo XML:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE data[
<!ELEMENT title (comments, image)>
<!ATTLIST title name CDATA #REQUIRED>
<!ELEMENT comments (#PCDATA)>
<!ELEMENT image (#PCDATA)>
]>
<data>
<title name="Titolo 1 àèìòù">
<comments>Contrary to popular belief.</comments>
<image>an1.jpg</image>
<link>http://www.libero.it</link>
</title>
<title name="Titolo 2">
<comments>Commento titolo 2</comments>
<image>an2.jpg</image>
<link>http://www.artea.net</link>
</title>
<title name="Titolo 3">
<comments>Commento titolo 3</comments>
<image>an3.jpg</image>
<link>http://www.google.it</link>
</title>
<title name="Titolo 4">
<comments>Commento titolo 4</comments>
<image>an4.jpg</image>
<link>http://www.repubblica.it</link>
</title>
<title name="Titolo 5 àèìòù">
<comments>Commento titolo 5</comments>
<image>an5.jpg</image>
<link>http://www.c-f-m.it</link>
</title>
</data>



E da questo codice in Flash :

[I]//Create the XML Object
myXML = new XML()
myXML.ignoreWhite = true
//Load XML file
myXML.load("anastasio.xml")
//Make a reference to current timeline
myXML.ref = this
// Parse XML and fetch
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.childNodes
this.ref["Comments_txt"+i].text = subnodes[0].firstChild.toString()
this.ref["holder_mc"+i].loadMovie(subnodes[1].firstChild.toString()


)
}
} else trace("Error loading XML document")
}
stop()




... Ed avendo 5 tasti già presenti nella scena (button o MC, per me è uguale), devo fare in modo di leggere gli url dal file XML ed abbinarli ai tasti, che sottolineo, non sono creati dinamicamente... MA NON CI RIESCO!!!
Qualcuno potrebbe darmi una mano?
Grazie mille a tutti coloro che mi aiuteranno!!!