Wednesday, 13 April 2016

APPEND TEXT AS3



--------------------------------------------------------------------------------------------------------------------
CODE:
--------------------------------------------------------------------------------------------------------------------

var Num1:Number = 0;
Bn1.addEventListener(MouseEvent.CLICK,BN1)
function BN1(e:MouseEvent){
Num1 = Num1 + 1;
trace(Num1);
Txt1.appendText([Num1]+", ")
}

var Num2:Number = 0;
Bn2.addEventListener(MouseEvent.CLICK,BN2)
function BN2(e:MouseEvent){
Num2 = Num2 - 1;
trace(Num2);
Txt1.appendText([Num2]+", ")
}


EmoticonEmoticon