At 6:39 PM -0700 7/29/2001, Tony Gravett wrote:
>I am a "newbie" and want to drag around images on the screen with the mouse.
>I am using the following script for each image, copied from a HyperCard
>stack:
>
>on mouseDown
>  set cursor to none
>  repeat until the mouse is up
>    show me at the mouseLoc
>  end repeat
>end mouseDown

Actually, there is a better way to do this, using the grab command:

  on mouseDown
    grab me
  end mouseDown

The image follows the mouse after the grab until the mouse button is released.

This solves the problem with the image jumping to its middle point, and is
also more efficient.

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!


Reply via email to