开发者

Incrementing a variable in as3 to give different results

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜