[RESOLVED] subtract number in text field
I have a text field which has a variable theyear assigned to it. The field starts with 2012 in it.
I have a button which has this script attached...
on (release) {
if (Number(theyear)>2003) {
oldyear=theyear;
updatedyear=Number((theyear)-1)
trace(updatedyear)
theyear = updatedyear;
}
}
With previous editions of Flash, each button click would reduce the visible value in the text field.
I am using CS6 now and although the traced variable logs correctly, the display in the text field goes from 2012 to 2011 to 200 and stays that way.
I'm a novice and am stumped. Any help would be appreciated.