'Defining input text as a number input in Flash
So, when I'm building an application in Flash and Actionscript 3.0 I create a sharedobject.data and I have an input field, the sharedobject is equal to the input field.But it's only restricted to numbers, but when the input is put in the number is thought to be text.. rather than an actual number (eg. "1" instead of just 1) is there anyway that I can make an input field into something like a number field?
Solution 1:[1]
Have you tried:
var variable:Number;
variable= Number(input_txt.text);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Kieran Quinn |
