Percent %



var text1;
calculate_btn.addEventListener(MouseEvent.CLICK, onButtonClicked);
function onButtonClicked(e:MouseEvent):void
{
text1 = (int(amount_txt.text) * int(perc_txt.text) / 100 );
answer_txt.text = text1;

}

0 comments:

Post a Comment