Drag and Drop

Richmond richmondmathewson at gmail.com
Thu May 9 14:42:57 CDT 2013


On 05/09/2013 09:01 PM, Mark Wieder wrote:
> Ray Horsley <ray at ...> writes:
>
>> What am I missing to get drag/drop working consistently?
> You might also want to look at
>
> <http://lessons.runrev.com/s/lessons/m/4071/l/7124-pinning-drag-and-drop-to-the-mat-a-primer>
>

Why do I always just use

on mouseDown
     grab me
end mouseDown

then set up a load of images as dropTargets and have stuff like this in 
the grabbedObject:

on mouseUp
     if not within (img "target", the mouseloc) then
        set the loc of me to 857,673
     end if
end mouseUp

must be missing something.

Richmond.



More information about the use-livecode mailing list