My english not is sooo good (but I bet a caipirinha that it’s better than your portuguese) =D
So… a simple AS:
function loadXML(loaded) {
titulo = menuXML.childNodes[**[COLOR=red]X[/COLOR]**].attributes.titulo;
titulo_sub = menuXML.childNodes[**[COLOR=red]X[/COLOR]**].childNodes[**[COLOR=green]Y[/COLOR]**].attributes.titulo;
titulo_txt.htmlText = titulo +" # "+ titulo_sub;
};
var menuXML:XML = new XML();
menuXML.ignoreWhite = true;
menuXML.load("_xml/menu.xml");
menuXML.onLoad = function(ok) {
if (ok) {
loadXML();
}
};
What I’m trying to do: get the values for [COLOR=red]X[/COLOR] and [COLOR=green]Y[/COLOR] from the URL string (e.g.: ?x=0&y=2). I tried several times here but unsucessfully.
Thanks in advance.
[]'s
Eduardo