Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87055

Re: When click on button -> Number in a text field increase by 1

$
0
0

var tf_value:int = 0;

tfF();

your_btn.addEventListener(MouseEvent.CLICK,f);  // where your button/sprite has reference your_btn

 

function f(e:MouseEvent):void{

tf_value++;

tfF();

}

function tfF():void{

your_tf.text=tf_value+"$";  // where your textfield has reference your_tf

}


Viewing all articles
Browse latest Browse all 87055

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>