Sticking an image to the cursor
    Chipp Walters 
    chipp at chipp.com
       
    Sat Oct 11 23:46:35 EDT 2008
    
    
  
Hi Bernd,
It generally the accepted convention to do the following:
local lMouseIsDown
on mouseDown
   put true into lMouseIsDown
end mouseDown
on mouseMove x,y
   if lMouseIsDown is true then
      --> DO YOUR STUFF HERE
      set the loc of img "myCursore" to x,y
   end if
end mouseMove
on mouseUp
   put false into lMouseIsDown
end mouseUp
on mouseRelease
   mouseUp
end mouseRelease
HTH, Chipp
    
    
More information about the use-livecode
mailing list