Move to the points

dunbarx at aol.com dunbarx at aol.com
Wed Jul 27 10:17:13 EDT 2016


,Richmond


I get no errors at all with your handlers. The figure-8 draws fine, and the tracking is lovely.


Craig



-----Original Message-----
From: Richmond <richmondmathewson at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Wed, Jul 27, 2016 9:46 am
Subject: Move to the points

So I have a graphic object generated like this:

on mouseUp
    put empty into fld "f1"
    put 0.1 into KOUNT
    repeat until KOUNT > 12.6
       put (KOUNT * 10) into LYNE
       put ( ( ((sin (KOUNT)) * (cos (KOUNT)) ) * 300) + 400) into LR
       put ((((cos (KOUNT)) ) * 300) +400) into TB
       put (LR & "," & TB) into line LYNE of fld "f1"
       add 0.1 to KOUNT
    end repeat
    set the points of grc "c1" to fld "f1"
end mouseUp

(where grc "c1" is a pre-existing graphic)

and a button containing this:

on mouseUp
 move grc "g1" to the points of grc "c1" in 10 seconds
end mouseUp

and all should be fine, but it isn't, because on attempted execution of 
the button I get this:

"button "GO": execution error at line 2 (move: end point is not a 
point), char 21".

All very mysterious, Richmond.

P.S. Before Mark, Jacque or Richard try it; there is a comma before my name!


_______________________________________________
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