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?
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/
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
Post a Comment