开发者

Incrementing a variable in as3 to give different results

开发者 https://www.devze.com 2023-04-12 17:49 出处:网络
I need a variable to increment a value in each click of the mouse clicks in the end a开发者_StackOverflowccording to the final results. How is this possible?var m_myValue:int = 0;

I need a variable to increment a value in each click of the mouse clicks in the end a开发者_StackOverflowccording to the final results. How is this possible?


var m_myValue:int = 0;
this.stage.addEventListener( MouseEvent.CLICK, this._onClick );

private function _onClick( e:MouseEvent ):void
{
    this.m_myValue++;
}

bam


apply the values ​​of variables to a dynamic text box in flash as3??

0

精彩评论

暂无评论...
验证码 换一张
取 消