PDA

View Full Version : Please Help - add/minus problems


solidsnake
05-25-2001, 02:35 PM
Hi all, can someone please help with some simple scripting. got a dynamic text field and 2 buttons A and B. click button A once it adds 1 to the text field, click again it becomes 2, click on B it minuses 1 and so on. I know it sounds stupid but it's been giving me a headache :( any comments or suggestions would be greatly appreciated, tia.

Marx
05-25-2001, 05:59 PM
Hi...
Provided your using Flash 5, you can use:

on (release) {
textfield++;
}

on (release) {
textfield--;
}

The textfield is named 'textfield'.

Hope this helps.