Grabbing/Dragging (was Re: Swipe-able objects in iOS)

Gerry Orkin gerry.orkin at gmail.com
Sun Feb 27 21:34:41 EST 2011


Scott, many thanks!

g


-- http://gerryorkin.com

On 28/02/2011, at 9:23 AM, Scott Rossi <scott at tactilemedia.com> wrote:

> Recently, Gerry wrote:
> 
>> In HyperCard I used to use the "on mousestilldown" message to make
>> objects draggable. LiveCode has a zillion new language elements, so
>> before I go old school is there now a better way? This is for
>> something that'll end up in iOS.
> 
> If you simply want to drag an object around a card, you can use the
> following in an object script:
> 
> on mouseDown
> grab me
> end mouseDown
> 
> If you need to track anything during a drag, you can see some examples in a
> drag sampler stack that is available by executing the following in your LC
> message box:
> 
>  go url "http://www.tactilemedia.com/site_files/downloads/drag_sampler.rev"
> 
> Since your target is iOS, you may need to substitute handlers with
> touchStart/touchEnd,  but the principles should be the same.
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the Use-livecode mailing list