In my flash movie I define two variables as numbers like
var number1:Number = 1
var number2:Number = 2
then later on I have it add them together, or at least I’d like to add them together to be the first variable.
number1 = number1 + number2
Instead of them equalling 3, it reads 12. I realize this is because its adding one string after the other and not adding them together as numbers, but how can I fix this?
[edit]
Fixed my problem. In case anyone else out there is having a similar problem what I did was this
number1 = int(number1 + number2);
and it worked out great.