3 Replies Latest reply on Dec 25, 2011 11:16 PM by kglad

    javascript, string to int

    zyhsu

      Dear Sir:

       

       

      I try to convert string to int in flash javascript:

       

       

      temp="120";

      temp2="140";

      temp3=int ( temp );

       

       

      but I got a message "int is not a function", can somebody tell me how to do this?

      also, what if I want convert number back to string?

       

       

      thanks a lot!