I have a third suggestion.

You don't need to set the button enabled=false, instead you create
your own parameter of tracking the status. when the button is
"disabled", just set the useHandCursor to false.

onRollOver
if(btnEnabled) showRollOverEffect
else showToolTip

onRelease
if(btnEnabled) doReleaseFunction
else doNothing

On 1/30/07, Stefan Thurnherr <[EMAIL PROTECTED]> wrote:
Thanks Andy and Hans for sharing your solutions. I like both of them
and will implement one of them...not sure yet which one, though.
 stefan.


On 1/26/07, Hans Wichman <[EMAIL PROTECTED]> wrote:
> Hi,
> we use a ButtonTooltipWrapper thingy.
> Basicly you do:
> new Tooltip (myButton, "myTooltip", [hitArea])
>
> it creates an empty movieclip, with the button as hitArea. All events that
> are not triggered on this clip are used to show/hide tooltip and then
> dispatched to lower lying button. Still tweaking it, but the basic principle
> works ok for us.
>
> greetz
> JC
>
>
> On 1/26/07, Andy Herrman <[EMAIL PROTECTED]> wrote:
> >
> > For the disabled state for our buttons we actually use a different movie
> > clip.
> >
> > Basically, each button consists of a Button object and a Movie Clip
> > with the image used for the disabled state.  When the button is
> > disabled we hide the Button and show the MC, and when it's enabled we
> > do the opposite.  Both the MC and the Button have the handlers for the
> > tooltip.
> >
> >   -Andy
> >
> > On 1/26/07, Stefan Thurnherr <[EMAIL PROTECTED]> wrote:
> > > 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.
> > > _______________________________________________
> > > [email protected]
> > > 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
> > >
> > _______________________________________________
> > [email protected]
> > 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
> >
> _______________________________________________
> [email protected]
> 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
>
_______________________________________________
[email protected]
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



--
/*
Bored, sometimes.
*/
_______________________________________________
[email protected]
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