I’m having a total brain freeze this Monday morning… ugh. Anyhow. I’m trying to convert a string from an XML file to a number so that I can use it in equations. It isn’t working. What is the proper syntax to do that?
This is the relevent code:
xArray[z] = xmlNode.childNodes[z].childNodes[2].firstChild;
xDest = xArray[0];
trace(Number(xDest))
Not working, it returns NaN. What stupid mistake am I making?