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");
}
精彩评论