Page 1 of 1
Draggable Object?
Posted: Mon Jul 09, 2007 1:39 am
by dalkin
Does anyone know whether a graphic object can be made draggable in a stand-alone app?
Posted: Mon Jul 09, 2007 7:55 am
by BvG
I know!
Check out the drag command, or if that does not suffice, you can set the location of your graphic relative to the mouse in a repeat loop.
Posted: Mon Jul 09, 2007 8:42 am
by dalkin
Before I posted this, I tried searching the dictionary and it returns the following, none of which is relevant:
http://www.stoplaughing.com.au/images/Picture1.png
If you know of another location where I could get the info, it'd be appreciated.
Posted: Mon Jul 09, 2007 8:54 am
by malte
Hi,
the easiest way is the grab command.
on mouseDown
grab me
end mouseDown
If you need to constrain the movement let us know.
All the best,
Malte
Posted: Mon Jul 09, 2007 9:02 am
by dalkin
Malte, thanks very much - right on the money!
Posted: Mon Jul 09, 2007 12:19 pm
by BvG
ah sorry, i always confuse grab with drag, my bad!
Posted: Mon Jul 09, 2007 2:05 pm
by Lynn P.
BvG wrote:ah sorry, i always confuse grab with drag, my bad!
LOL! You're not the only one Björnke. "Grab" always feels like such a hostile and forward thing to do with a poor little Rev object, so it never enters my mind.
Lynn P.
