views:

56

answers:

1

Hi,

I'd like to know what is the difference between MouseEvent.CLICK & MouseEvent.MOUSE_DOWN. Because when i use MouseEvent.MOUSE_DOWN for a button to set full-screen view its doesn't work, instead of this MouseEvent.CLICK works. So what was the reason.

+5  A: 

I don't specifically know about ActionScript, but in general a mouse click event consists of a mouse down event, followed by a mouse up.

Matt Ball
That's exactly what it is. `CLICK` is down then up; `MOUSE_DOWN` is just down (like the start of a drag operation).
zeh
@zeh: it might be a little misleading to say anything about a drag operation. All you can really say is that `MOUSE_DOWN` is fired when the mouse button is pressed down, before it is released.
Matt Ball
It's just an example of the typical use of `MOUSE_DOWN` when it's not about a click.
zeh