Hi there,
I have an xml file. Here's a sample:
<label
name="My Text 4"
x="-100"
y="-259"
text="Interior Decors"
></label>
<radiobutton
name="ID1"
x="-100"
y="-239"
label="Copper Canyon"
labelPos="right"
groupname="Group 1"
value=http://www.webdeveloper.com/forum/archive/index.php/"radiobutton1"
rate="123"
></radiobutton>
In actionscript(flash) I have 2 access the "rate" attribute. This'rate' comes in only some tags. such as radio/ chk. I tried:
var my_xml = new XML();
var price= my_xml.firstChild.childNodes.attributes.rate ;
OR
var price= my_xml.firstChild.attributes.rate ;
etc., etc.,
trace(price);
the answer comes "undefined". I am not that well thru XML. Pls help.
I have an xml file. Here's a sample:
<label
name="My Text 4"
x="-100"
y="-259"
text="Interior Decors"
></label>
<radiobutton
name="ID1"
x="-100"
y="-239"
label="Copper Canyon"
labelPos="right"
groupname="Group 1"
value=http://www.webdeveloper.com/forum/archive/index.php/"radiobutton1"
rate="123"
></radiobutton>
In actionscript(flash) I have 2 access the "rate" attribute. This'rate' comes in only some tags. such as radio/ chk. I tried:
var my_xml = new XML();
var price= my_xml.firstChild.childNodes.attributes.rate ;
OR
var price= my_xml.firstChild.attributes.rate ;
etc., etc.,
trace(price);
the answer comes "undefined". I am not that well thru XML. Pls help.