Help! Increasing/decreasing numerical text


hi, i'm new flash, appreciate help. have dynamic text box , 2 buttons. within text box display number, starting @ zero. when button clicked i'd number in text box increase one, until reaches 12. when down button clicked, i'd number in text box decrease 1 until reaches 0.

can help?

you can simple this:

upbtn.onrelease = function() {
mydisplay.text = parseint(mydisplay.text) + 1;
};

downbtn.onrelease = function() {
mydisplay.text = parseint(mydisplay.text) - 1;
};


--
dave -
head developer
http://www.blurredistinction.com
adobe community expert
http://www.adobe.com/communities/experts/




More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums