Constrained grab

dunbarx at aol.com dunbarx at aol.com
Sat Jan 21 17:18:12 EST 2012


Drinking aside, get item 2 of the loc of your target object on mouseEnter. Put it into a custom prop of that object. Write a mouseMove handler that sets the loc of the target to item 1 of the mouseLoc & "," & the property.


Craig



-----Original Message-----
From: Richmond <richmondmathewson at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Sat, Jan 21, 2012 10:14 am
Subject: Constrained grab


I have a "blob" that contains this script:

on mouseDown
   grab me
end mouseDown

so I can move the "blob" around . . .

HOWEVER I want to somehow constrain the GRAB so that I can only drag the 
"blob" laterally.

[Don't blame me; blame George Brackett . . .  ]

Richmond.

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list