i make my xml…
<?xml version=“1.0” encoding=“utf-8”?>
<NAMES>
<NAME TITLE="Mr." NAME="Rambo"></NAME>
<NAME TITLE="Mrs." NAME="Marrie"></NAME>
<NAME TITLE="Miss." NAME="Kent"></NAME>
</NAMES>
My Action Script
my_xml = new XML();
my_xml.load(“info.xml”);
my_xml.onLoad = my_function;
my_xml.ignoreWhite = 1;
function my_function() {
text_field_1.text = my_xml.firstChild.childNodes[0].attributes.TITLE;
text_field_2.text = my_xml.firstChild.childNodes[1].attributes.TITLE;
text_field_3.text = my_xml.firstChild.childNodes[2].attributes.TITLE;
text_field_a.text = my_xml.firstChild.childNodes[0].attributes.NAME;
text_field_b.text = my_xml.firstChild.childNodes[1].attributes.NAME;
text_field_c.text = my_xml.firstChild.childNodes[2].attributes.NAME;
}
OUTPUT is
Mr. Rambo
Mrs. Marrie
Miss. Kent
But if i will change my xml…like this
<?xml version=“1.0” encoding=“utf-8”?>
<NAMES>
<NAME TITLE="Mrs." NAME="Marrie"></NAME>
<NAME TITLE="Miss." NAME="Kent"></NAME>
<NAME TITLE="Mr." NAME="Rambo"></NAME>
</NAMES>
i remove ist line Rambo and put in last…and using same AS in flash so im getting output like this…
Mrs. Marrie
Miss. Kent
Mr. Rambo
but i wanted Rambo in Ist…so what i will change in my AS
HELP ME PLZ