# Loading integers from XML file

**URL:** <https://forum.kirupa.com/t/loading-integers-from-xml-file/158062>\
**Category:** Uncategorized\
**Created:** [August 6, 2005, 4:22pm UTC](https://forum.kirupa.com/t/loading-integers-from-xml-file/158062 "2005-08-06T16:22:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SirriC](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@SirriC](https://forum.kirupa.com/u/SirriC)\
**Post date:** [August 6, 2005, 4:22pm UTC](https://forum.kirupa.com/t/loading-integers-from-xml-file/158062/1 "2005-08-06T16:22:39Z")

</div>

Hello

I’m loading an XML file into flash, one of the fields is an ID of them item in the database the XML file was made from.

I can load everything fine and have put all the data into a multi-dimensional array, but for some reason the ID is a string. I’ve tried using Number(myID), to covert it to an integer but nothing seems to work.

So how can I load an Integer into Flash using XML and have Flash recognise it as an Integer?

I’m using Flash MX '04.

Cheers

Ric
