how (AS Q)
how (AS Q)
- Started
- Last post
- 24 Responses
- stewart0
oi, nice.
- fugged0
>> yeah, parseFloat would be fine too, but i wouldn't use parseInt.
I understand parseInt will provide you with only an integer and not a decimal. But, for this case, I think that's what he'd want.
- fusionpixel0
hey stewart, what is that IRC channel at? the #lfash channel
- yah0
You have to populate a new var
var textfield1:String = "4";
var textfield2:Number = Number(textfield1);
if(textfield2 == 4) {
trace("It's now a number!");
}