AW: AW: missing a basic with drag

viktoras didziulis viktoras at
Thu Aug 14 12:44:45 EDT 2008

try this alternative (put into your graphic object):

#click to select and drag, click again to release
on mouseDown
  set the dragMe of me to NOT the dragMe of me
end mouseDown

on mouseMove X,Y
  if the dragMe of me is TRUE then
    #will set the limits for the drag space to minY, maxY, minX, maxX
    if Y >= minY and Y <=maxY and X >=minX and X <= maxX then
      set the loc of me to X & comma & Y
    end if
  end if
end mouseMove


More information about the use-livecode mailing list