0 Replies Latest reply on May 24, 2010 11:29 PM by celebritymusic

    Assigning Numbers to global vars?

    celebritymusic Level 1

      Hi

       

      I want to convert the number string from a text field into a number, and then assign that number to a a global var.

       

      I get how to do it with regular vars:

       

      var firstOne:Number = Number(firstTextField.text);
      var secondOne:Number =  Number(secondTextField.text);

       

      Is it possible to replace firstOne and secondOne with global.data.firstOne and global.data.secondOne?

       

      I can't seem to make it work.

       

      Cheers for your help.

       

      Shaun