Hello
What’s the best way to integrate xml data so that it is treated as a number
I can declare the following
var val:Number;
and then read the value in from a .xml file
If I do this in the following example, flash seems to convert newVal to a string when I want a number
I assume this is because val is a value read in from a .xml file:
var newVal:Number=0;
for(var i;Number=0;i<10;i++){
newVal+=5+val;
trace(newVal);}
How can I get flash to treat val as a number and yield a numeric result rather than a string of numbers