Move Callbacks

Ender Nafi Elekcioglu endernafi at gmail.com
Tue Oct 29 18:34:47 CET 2013


Hi Ray,

I’ll just state the obvious.

According to dictionary,
the only message related to *move* command is “moveStopped”.
That’s not good for your task.

It seems that, the only solution you can implement is constructing your own “move” handler.
Something as follows, maybe:

_ on mouseUp
__ put the long id of img myImage into tObjectID
__ put the points of grc myPoints into tPoints
__ send “moveObjectToPoints tObjectID, tPoints” to me in 0 milliseconds
_ end mouseUp


_ on moveObjectToPoints pObjectID, pPoints
__ put pPoints into tPoints
__ put pObjectID into tObjectID
__ set the loc of tObjectID to line 1 of tPoints
__ delete line 1 of tPoints
__ # do your thing, rotate, blend, etc.
__ if the number of lines of tPoints > 0 then
____ send “moveObjectToPoints tObjectID, tPoints” to me in 0 milliseconds
__ end if
_end moveObjectToPoints


Best,

~ Ender Nafi


More information about the use-livecode mailing list