开发者

ActionScript 2: Is it possible to test is the mouse is pressed without setting up an event?

Is it possible to read the mouse 开发者_StackOverflow中文版key, like you do with Key.isDown(), ie. without setting up an unPress event/callback?


Yes. This is the code in as2:

this.onMouseDown = function() {

trace("mouseDown");

}

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜