how (AS Q)
how (AS Q)
Out of context: Reply #9
- Started
- Last post
- 24 Responses
- fugged0
use parseInt()
a = "3"
b = parseFloat(a)+1;
trace(b);output: 4.
>>also with if ( textfield =="4" ) the value of the textfield is set to "4" instead of comparing it...
shouldn't be if you are using == and not =. a single = causes an assignment where == and === are for evaluating an expression.