0 Replies Latest reply on Jan 26, 2010 11:06 AM by alba1010101

    How can I test for a special character in action script ?

    alba1010101

      I have XML which I use within Flex. One off the values passed in is a special character (the infinity symbol). This displays great within the datagrid, but I want to do some other action script rendering based on this. How can I test this in an if statement.

       

      XML snippit

      <data>&#8734;</data>

       

       

      var infin:String = data[column.dataField];

                                                                     

      if (infin == "&#8734;") // This is the bit I can’t work out

      {

                      // Do Something here

      }