I’m trying to use actionscript in a button to increment variables in my program. ie. when you click the button it increments a variable and so displays different information in one of my dynamic text boxes. The program doesn’t seem to recognise the button input. I understand you have to give your button an instance name but I’m not sure how to set up the code to recognise this input.
The code in my button is on (release) {
buttonup++;}
This is meant to increment a variable of that name but doesn’t appear to work.
Any suggestions would be very welcome.
right after that put this,
trace(buttonup);
if in your output window it works, then it’s a problem with your dynamic text box.
seems to me is as tho oyu haven;t declared the original value so in ur first frame declare buttonup = 1 or so
Yup. Got it now. Thanks for that.