Asv3's Blog

September 13, 2009

Mouse Events

Filed under: flash — Tags: , , , — asv3 @ 8:57 am
  • MouseEvent.MOUSE_DOWN
  • MouseEvent.MOUSE_UP
  • MouseEvent.CLICK
  • MouseEvent.DOUBLE_CLICK
  • MouseEvent.MOUSE_MOVE
  • MouseEvent.MOUSE_OVER
  • MouseEvent.MOUSE_OUT
  • MouseEvent.ROLL_OVER
  • MouseEvent.ROLL_OUT
  • MouseEvent.MOUSE_WHEEL

interesting thing to observe here is ROLL_OVER and MOUSE_OVER looks similar but they have it’s own purpose. The purpose of the rollOver event is to simplify the coding of rollout behaviors for display object containers with children. When the mouse leaves the area of a display object or the area of any of its children to go to an object that is not one of its children, the display object dispatches the rollOver event. This is different behavior than that of the mouseOver event, which is dispatched each time the mouse enters the area of any child object of the display object container, even if the mouse was already over another child object of the display object container.

Hence these two events make difference, when they are assigned to MovieClips with child display objects.

Blog at WordPress.com.