...permit an oject to be "dragged"...

Klaus Major kmajor at metascape.org
Thu Feb 7 04:05:00 EST 2002

Hi Gary,

> I have a series of objects that I would like for the user to be able to 
> drag
> to another area of the active card.
> Thanks...

Try this (in case i got you right).

Put this in the script of the object you want the user to drag around:

on mousedown
     grab me
end mousedown

You could then do some checking "on mouseup" to correct position,
or see if the user dropped the object in an "allowed" area of the card
or whatsoever...

Drop a line, if you need further info (maybe on how to checking etc...)


Klaus Major
kmajor at metascape.org

More information about the Use-livecode mailing list