Activating a button underneath the mouse: how do you capture the OVER event?

Posted by cgs on Stack Overflow See other posts from Stack Overflow or by cgs
Published on 2009-04-20T20:38:42Z Indexed on 2010/05/02 16:08 UTC
Read the original article Hit count: 118

Filed under:
|

Observed behavior:

  1. I have a page of UI sliding onto the screen.
  2. On slide complete, activate buttons.
  3. If mouse already over a button, the rollover does not happen (since MOUSE_OVER hasn't technically occurred)

Desired behavior: 1, 2 the same, but on 3, I see my rollover.

Is there any way to easily do this, aside from something brute-force, like tracking the mouse and comparing its position against all buttons dims?

Thanks!

© Stack Overflow or respective owner

Related posts about flash

Related posts about actionscript-3