LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
I just made a stack with an OVAL graphic
and set the screenMouseLoc to the loc of the graphic,
and it moved the location of the pointer to the location on
the screen and NOT the location relative to the stack.
Therefore you have to take into account where the stack is on the screen:
The stack is called "LOCKER", it contains one oval graphic "gOVAL"
and a button that contains this script:
on mouseUp
put item 1 of the loc of graphic "gOVAL" into inOVAL
put item 2 of the loc of graphic "gOVAL" into upOVAL
put item 1 of the topLeft of stack "LOCKER" into inLOCK
put item 2 of the topLeft of stack "LOCKER" into upLOCK
set the screenMouseLoc to ((inLOCK + inOVAL),(upLOCK + upOVAL))
end mouseUp
I am attaching the stack here for your convenience.