XML data loading into Flash

admin

Administrator
Staff member
I am loading data into Flash using an external XML file set up like the following;
<parent>
<child>50</child>
</parent>
My problem is that Flash turns the numeric 50 into a string "50" which is of no use for the particular application i'm working on.
I need to convert it to the integer 50.
I am working along the lines of;
myNumber = new Number(varSetToFirstChildNode);
but this only gives me NaN,
Any ideas please?
 
Back
Top