magic settings for rollovers?

Lynch, Jonathan bnz2 at cdc.gov
Wed Aug 24 17:46:48 EDT 2005


How about if you have a transparent image (with the ink set to allow it
to receive mousemove and mouseenter messages) at the lowest layer inside
the group: Then set up your scripts like this:


Whenever a button or graphic in the group receives a mouseenter/mouse
move message, then it does these things:

1) Checks to see if a custom prop for the group, call it the
CurrentArmedButton property, contains a number that is different from
the ID of the current target

2) If it does contain such a number, which is the ID of a different
button, then it sets the armed of that button to false

3) Sets the armed property of the current button to true

4) sets CurrentArmedButton of the group to the ID of the currently armed
button.



The mouseenter/mousemove handler for the transparent image at the lowest
layer of the group would do these two things:

1) Check to see if there is a number in the CurrentArmedButton property
of the group

2) If there is a number in it, then:
    a) set the armed property of that button to false
    b) set the CurrentArmedButton property of the group to empty

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Dennis
Brown
Sent: Wednesday, August 24, 2005 5:32 PM
To: How to use Revolution
Subject: Re: magic settings for rollovers?

Richard,

If you want a fail-safe, perhaps you can have an idle task that just  
goes around and fixes any bad button images if the mouse is not  
within them.

Dennis

On Aug 24, 2005, at 4:41 PM, Richard Gaskin wrote:

> SimPLsol at aol.com wrote:
>
>> Richard,
>> How about mouseEnter and mouseLeave; assigning the button icon by  
>> ID reference? Obviously not as easy... but if it works...
>>
>
> Thanks. Tried that.  Unfortunately if you move the mouse fast  
> enough some objects may not get the mouseLeave. :(
>
> --
>  Richard Gaskin
>  Managing Editor, revJournal
>  _______________________________________________________
>  Rev tips, tutorials and more: http://www.revJournal.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list