4 Replies Latest reply on Dec 9, 2008 6:59 PM by monkeyden.com

    Enter an equation into a textbox and it will automatically calculate an answer

    Wingnow
      Hi All,


      I have created two textboxes.
      What I would like to do is after entering an equation, e.g. "(9-5)*30 + 1", into the textbox 1,
      textbox 2 will automatically gives me the answer "121".

      I have no idea which function can give me an int 121 from a string "(9-5)*30 + 1" or I have to build one by myself.
      Are there any build-in functions in AIR could help?
      If I have to build one by myself, are there any sample code for me to reference??


      Many Thanks!!