mouseControl problem

DunbarX at aol.com DunbarX at aol.com
Wed Mar 18 13:39:14 EDT 2009


I am rewriting the "ss" function in HC. Because it is there.

Whereas this works fine (in a button script):

on mouseUp
 set cursor to plus
    repeat until the optionKey is down
       if the mouseClick then put the mouseLoc
    end repeat
end mouseUp

I cannot get this to work at all:

on mouseUp
 set cursor to plus
    repeat until the optionKey is down
       if the mouseClick then put the mouseControl 
    end repeat
end mouseUp

Only changed one word.

I can get mouseLocs at each click all around the stack. I can only get the 
mouseControl for the object that contains the script itself. Something about the 
mouseControl?

Craig Newman


**************
Great Deals on Dell 15" Laptops - Starting at $479 
(http://pr.atwola.com/promoclk/100126575x1220433363x1201394532/aol?redir=http:%
2F%2Fad.doubleclick.net%2Fclk%3B212935224%3B34245239%3Bb)



More information about the use-livecode mailing list