Page 1 of 1

drag a button

Posted: Mon Mar 23, 2009 10:20 pm
by Preston Shea
I used to know a very simple snippet for dragging an object with the mouse but old age is a shipwreck. Can some kind poster help me out?

Posted: Mon Mar 23, 2009 11:46 pm
by bn
Hi Preston,

Code: Select all

on mouseDown
    grab me
end mouseDown
in the script of a button should do the trick

regards
Bernd