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: 117
flash
|actionscript-3
Observed behavior:
- I have a page of UI sliding onto the screen.
- On slide complete, activate buttons.
- 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