Hello, i have a xml file and i want to read it on flash but i’m portuguese so i need to be able to use some characters that are not working…
like this: âààùæçéèêëîïôœùûü«»ÜÛÙŒÔÏÎËÊÈÉÇÆÄÂÀ
here is my xml file:
<adams>
<user><numero>ricardo jerónimo</numero><embalagens>300</embalagens></user>
<user><numero>Rogério Machado</numero><embalagens>27</embalagens></user>
<user><numero>nome2</numero><embalagens>24</embalagens></user>
</adams>
and i’m getting the xml to flash using this:
function loadXML(loaded) {
if (loaded) {
//nomes concorrentes
primeiro = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
segundo = this.firstChild.childNodes[1].childNodes[0].firstChild.nodeValue;
terceiro = this.firstChild.childNodes[2].childNodes[0].firstChild.nodeValue;
} else {
trace("file not loaded!");
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("simple_edit.xml");
I’m adding the special characters clicking on the dynamic field and clicking embed, include this characters “âààùæçéèêëîïôœùûü«»ÜÛÙŒÔÏÎËÊÈÉÇÆÄÂÀ”
I’m doing something wrong?