Page 1 of 1
How can I drag an image on the iPad?
Posted: Sun Mar 18, 2012 9:24 pm
by EpicBlob
I have an image on my app, but I can't figure out how to let the user drag it with his finger.
Any help would be appreciated.
Re: How can I drag an image on the iPad?
Posted: Sun Mar 18, 2012 9:42 pm
by bn
Hi epicBlob,
have a look at the Help Menu -> Example Stacks and Resources -> Mobile Examples -> Scroller Example.livecode
That should get you started.
If there are any problems please don't hesitate to ask.
Kind regards
Bernd
Re: How can I drag an image on the iPad?
Posted: Mon Mar 19, 2012 2:18 am
by Jellicle
Not sure the OP wants to drag an image in a browser... Perhaps s/he could explain the use case more clearly?
g
Re: How can I drag an image on the iPad?
Posted: Mon Mar 19, 2012 2:52 am
by EpicBlob
So I'm making a statistics program. On a slide, there is an onscreen court that shows a birds eye view of the two teams. Each player is made from a circle and number (two separate objects). I want to be able to move these players around the court.
For now, I don't want to worry about the user dragging the player outside of the court. All I need is for them to move

.
Thanks,
Epic
Re: How can I drag an image on the iPad?
Posted: Mon Mar 19, 2012 5:31 am
by Jellicle
Ok. There are a few ways to do that. Check out the "grab me" command, which is usually placed in a mouse down handler. It'll magically make the object dragable
Gerry