ho impostato il lavoro così:
file xml
codice action scriptCodice PHP:<?xml version="1.0" encoding="iso-8859-1"?>
<postazione>
<filmato>cartina1.swf</filmato>
<posx>150</posx>
<posy>124</posy>
</postazione>
però non funziona...Codice PHP:_root.pc_mc._visible = false;
var dati:XML = new XML();
dati.onLoad = function(success) {
if (success) {
var nodes = this.firstChild.childNodes;
for (var i = 0; i<nodes.length; i++) {
var filmato = nodes[i]
var posx = nodes[i]
var posy = nodes[i]
}
_root.pc_mc._visible = true;
var1_txt.text = filmato;
varx_txt.text = posx;
vary_txt.text = posy;
_root.pc_mc._x = posx;
_root.pc_mc._y = posy;
} else {
var1_txt.text = "dati non caricati !!!";
}
};
dati.load("leggi-xml.xml");

Rispondi quotando