To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-06-2009, 06:20 PM   #1
Alluvian
Senior Member
 
Alluvian's Avatar
 
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.
Alluvian is offline   Reply With Quote
Old 11-07-2009, 02:16 AM   #2
gparis
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)
gparis is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:45 AM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.