I’ve pulled in some data into an array but it seems to have pulled everything in as strings. I need to be able to do calculations with some of the data so one element in the array should be a number data type not a string.
Is there a way to assign the data type without using components or to convert the data type?
[SIZE=4]XML[/SIZE]
<account>
<name>Cash at bank</name>
<number>10</number>
<value>108000</value> [COLOR=darkred]<-- Should be a number[/COLOR]
<type>debit</type>
display>true</display>
</account>
[SIZE=4]Actionscript[/SIZE]
for (var stringNode:XMLNode = childNode.firstChild; stringNode != null; stringNode = stringNode.nextSibling, j++){
accountArray*[j] = stringNode.firstChild.nodeValue;
}