MouseMove . . . err?

Richmond Mathewson geradamas at yahoo.com
Fri Dec 12 11:17:14 EST 2008


Just knocked together a silly little stack with 4 buttons called 
"X1", "X2", "X3" and "X4". Now I want them to chase my cursor in 
a quad shape, and to do that I popped this script into my card:

on mouseMove
  set the moveSpeed to 10000
  put item 1 of the mouseLoc into MISHKA1
   put item 2 of the mouseLoc into MISHKA2
   move btn "X1" to (MISHKA1 + 40), (MISHKA2 + 40)
   move btn "X2" to (MISHKA1 - 40), (MISHKA2 + 40)
   move btn "X3" to (MISHKA1 + 40), (MISHKA2 - 40)
   move btn "X4" to (MISHKA1 - 40), (MISHKA2 - 40)
end mouseMove

[ find "MISHKA.rev" at revOnline, under 'Richmond' ]

but the buttons behave a bit oddly (cannot describe it, has to
be seen to be understood).

Would be grateful for help.

sincerely, Richmond Mathewson.
____________________________________________________________

A Thorn in the flesh is better than a failed Systems Development Life Cycle.
____________________________________________________________


      



More information about the use-livecode mailing list