1 Reply Latest reply on Oct 5, 2006 3:29 AM by Newsgroup_User

    a problem on XML parsing (NaN)

    Level 7

      i read some data from XML and assign them an array variable. But I cant use
      some of them. When I make a mathematical opeariton, value of varible is not
      determined and give NaN.

      i read this and assgin a variable :
      var num:Number= Number(votes.childNodes .childNodes [1].firstChild);
      trace (votes.childNodes
      .childNodes [1].firstChild) // output is 20
      trace (num) // output is NaN

      same stuation is appear on String(votes.childNodes .childNodes

      do you know why?