How to lock a field after a drag?
Eric Chatonet
eric.chatonet at sosmartsoftware.com
Wed Nov 16 04:37:22 EST 2005
Hi William,
Welcome to this list :-)
You might be interested first in the basics about drag and drop with
Revolution.
Then you could have a look at some tutorials: "How to manage drag and
drop", "Images drag and drop", etc.
These tutorials and many others are available from "Tutorials
Picker", a plugin you will find by going to http://
www.sosmartsoftware.com/?r=revolution_didacticiels&l=en
Best Regards from Paris,
Eric Chatonet.
Le 15 nov. 05 à 21:16, William de Smet a écrit :
> Hi there,
>
> As a newbie I'm trying to do the following with a field:
> drag field "1" onto field "2" and then count 1 up in a field
> called "score" (field "1" must then be locked until field "
> score" is five and next field "1" must be draggable again.
>
> So far I use the following code:
> ---------------------------------------------
> on mouseDown
> grab me
> set cursor to 28
> lock cursor
> end mouseDown
>
> on mouseup
> unlock cursor
> set cursor to arrow
> if intersect(me,field "2") then
> move me to the loc of field "2"
> add 1 to field "score"
> end if
> end mouseup
> ---------------------------------------------
>
> I thought I use 'set mousedown on me to false' after " add 1 to
> field "score" but that doesn't work because I can still drag the field
> I need help, anyone?
----------------------------------------------------------------
So Smart Software
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
Free plugins and tutorials on my website
----------------------------------------------------------------
Web site http://www.sosmartsoftware.com/
Email eric.chatonet at sosmartsoftware.com/
Phone 33 (0)1 43 31 77 62
Mobile 33 (0)6 20 74 50 86
----------------------------------------------------------------
More information about the use-livecode
mailing list