3 Replies Latest reply on Dec 4, 2007 11:18 AM by Greg Dove

    Loading variable from XML to Flash

    sand2
      Dear all,
      when I load external variable from XML file to Flash by:
      myXML = new XML;
      myXML.load("data.xml");

      var x:Number = myXML.firstChild.firstChild.nextSibling.firstChild;

      Variable x contains number 5 for example, thats ok! But the number 5 in not a number but character and I cannot do any mathematic operation with this character.
      For example if I use:
      y = x + 1;
      I will not get number 6 in variable y but NaN !!

      Please help me!!