Grabbing another grc

Richard Gaskin ambassador at fourthworld.com
Tue May 6 12:51:01 EDT 2003


Malte Brill wrote:

> you might try this:
> 
> on opencard --or whereevever
> set the uAllowDrag of grc "circle" to false
> end openCard
> 
> In the script of grc "circle"
> 
> on mouseDown
>   set the uAllowDrag of me to true
> end mouseDown
> on mouseUp
>   set the uAllowDrag of me to false
> end mouseUp
> on mouserelease
>   mouseUp
> end mouserelease
> on mousemove x,y
>   if not the uAllowDrag of me then exit mouseMove
>   set the loc of grc "square" to the mouseLoc
> end mousemove

If I'm not mistaken, "the mouseLoc" is a polling function so you could get
better performance using the params passed with the mouseMove message:

on mousemove x,y
  if not the uAllowDrag of me then exit mouseMove
  set the loc of grc "square" to x,y
end mousemove

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.2: Publish any database on any site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc




More information about the use-livecode mailing list