|
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jun 2006
Posts: 873
|
disabling mouse events on a movie so a movie underneath does not trigger rollout
I have a tooltip that activates when I roll over a movie (onRollOver). This tooltip slides around with the mouse because I think it looks nice, and when the tooltip is going to go offscreen, it slides to the other side of the mouse so you can continue reading it.
Unfortunately, my tooltip is at a depth higher than my rollover movieclip, so when the tooltip slides to the other side of the mouse, it triggers the onRollOut event of the underneath movie which destroys the tooltip, which triggers the rollover which makes the tool tip, and then the tooltip tries to slide back onscreen and triggers the rollout and then cats and dogs start living together, mass hysteria, all that jazz. I have tried making the tooltip .enabled = false, but that does not seem to keep it from invoking the rollout. I think maybe passing the original calling movieclip to the tooltip function and doing some kind of hittest might work, but is there a way in AS2 to cause a movieclip to be 'transparent' to mouse events like rollover? I am pretty sure there is a property in AS3, but it has been awhile and I am afraid I am missing something simple. |
|
|
|
|
|
#2 |
|
Super Moderator
Join Date: Aug 2000
Location: Montréal
Posts: 13,242
|
If you used a hitTest with _xmouse and _ymouse (movieclip behavior) instead of an onRollOver (button behavior) i think cats and dogs could be at peace.
That would confirm your last assumption. Don't give button style code to your clip and you won't have button frenzy. gparis
__________________
![]() AS 2.0 Forum Guidelines || Use PHP tags for code samples || Flash9 LiveDocs || AS 2.0 Language reference (CS4) |
|
|
|
![]() |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|