Graphic tools - works in IDE, fails in Standalone: getting desperate

Colin Holgate coiin at verizon.net
Mon Jun 3 12:10:48 EDT 2013


Here's a card script that almost does what you need:

global latestoval,latestovalloc

on mousedown
   lock screen
   set the style of the templateGraphic to oval
   put the mouseloc into latestovalloc
   new graphic
   put the number of graphics into latestoval
   set the backcolor of  graphic latestoval to "red"
   set the filled of graphic latestoval to true
   set the rect of graphic latestoval to latestovalloc & comma & the mouseloc
   unlock screen
end mousedown

on mousestilldown
   set the rect of graphic latestoval to latestovalloc & comma & the mouseloc
end mousestilldown


It isn't quite right, because it only works for dragging from top left to bottom right, but you should see that it works fine in standlaones, even on iOS.






More information about the use-livecode mailing list