Setting a fade in/out of a group

Scott Rossi scott at tactilemedia.com
Fri Feb 7 17:56:57 EST 2014


Yeah, you need to qualify what triggers the fade.  Try placing the
mouseLeave handler in the group script, something like:

on mouseLeave
   if short name of the target is "myTransButton" and not
within(me,mouseLoc()) then doFade
   . . .
end mouseLeave

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 2/7/14 2:14 PM, "Peter Bogdanoff" <bogdanoff at me.com> wrote:

>Yes, making it the bottom control now works great for a mouseEnter/fade
>in.
>
>However, mouseLeave/fade out is the problem. For as soon as the mouse
>enters one of the other controls that are layered higher up, the
>mouseLeave is triggered and the fade out happens (while the mouse is
>still in the group's rectangle).
>
>The mouseLeave needs to be part of something, but I haven't yet figured
>out where. Moving it to the group script itself doesn't fix it.
>
>??
>
>Peter
>
>
>On Feb 7, 2014, at 12:37 PM, Scott Rossi wrote:
>
>> Yes, make the button the first (bottom) control in the group.
>> 
>> Regards,
>> 
>> Scott Rossi
>> Creative Director
>> Tactile Media, UX Design
>> 
>>> On Feb 7, 2014, at 10:07 AM, Richard Gaskin
>>><ambassador at fourthworld.com> wrote:
>>> 
>>> Peter Bogdanoff wrote:
>>> 
>>>> So I put a transparent button into the group on top of all the
>>>> others. The effect now works great. But how do I send a mouseClick
>>>> to the other buttons in the group that are underneath it?
>>> 
>>> Move the transparent button behind the others?
>>> 
>>> --
>>> Richard Gaskin
>>> Fourth World
>>> LiveCode training and consulting: http://www.fourthworld.com
>>> Webzine for LiveCode developers: http://www.LiveCodeJournal.com
>>> Follow me on Twitter:  http://twitter.com/FourthWorldSys
>>> 
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>>subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>>subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode
>






More information about the use-livecode mailing list