|
-
Senior Member
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.
-
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|