Making an image draggable

Bob Hartley rev at armbase.com
Sat Jul 9 10:41:29 EDT 2005


You wrote:

> > Tried several variations of the following script: on mousedown make
> > image "ruler.jpg" draggable end mousedown
> 
> -- Script of ruler image on mouseDown
>   grab me
> end mouseDown
> 
> Now this doesn't have any constraints, but it works very well...

Or only dragable when the control key is down

on mouseDown
    if the controlKey is down then
      grab me
      end if
end mouseDown

Cheers
Bob



More information about the use-livecode mailing list