Hello flashcoders,

How did/would you implement showing a tooltip over a disabled button?
The onRollOver/onRollOut events seem not to fire when a button is
disabled. I see two solutions right now:

1. Add an onMouseMove listener (within MyButton extends Button) and
check whether _xmouse/_ymouse coincide with MyButton's area
(x+width/y+height).

2. Attach an additional MovieClip to every MyButton instance, set its
depth to the top and its _alpha=0, and check for the
onRollOver/onRollOut events on that MovieClip instance.

Any thoughts on which one is better, or any other solutions?

Thanks,
stefan.
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to