Michael,

That works really well. Thanks.

I used it with the "grab me" function and reversed the mouseUp and 
mouseDown for true and false hilite. This allows me to get the hilites 
working while I'm dragging the button.

Bill Vlahos

On Monday, October 8, 2001, at 05:00  PM, use-revolution-
[EMAIL PROTECTED] wrote:

> You say there are too many target objects to check overlap with all of 
> them.
> How about a repeat loop to check through each of the objects?
>
> For example, adapting Geoff Canyon's script, and assuming you would be 
> using
> buttons for all the targets:
>
> local draggingMe
>
> on mouseDown
>   put true into draggingMe
> end mouseDown
>
> on mouseUp
>   put false into draggingMe
> end mouseUp
>
> on mouseMove x,y
>   if draggingMe then
>     set the loc of me to x,y
>     put the num of buttons into tNumButtons
>     repeat with i = 1 to tNumButtons
>       if intersect(button i, me) then hilite button i
>       else unhilite button i
>     end repeat
>   end if
> end mouseMove
>
> If you only want certain buttons to hilite, you might set a custom 
> property
> on the ones that should and check that.
>   Cheers,
>      Michael

Reply via email to