Very simple math

I have a variuable with a number, loaded froma text file.

and i need to make it so that if i pust a button it (mathematicly) adds 1 to the variable, so that if w=6 then after button w=7. not w=61, which i keep getting…

its probably the same for flash mx, so if you know postie.

right now i have

on (release) {
w = w+1;
}

but tht adds “1” to the rest of the “6” = 61, not 7

/johannes