Drag a Graphic Tool
    Jan Schenkel 
    janschenkel at yahoo.com
       
    Sun Nov 28 00:45:43 EST 2004
    
    
  
--- Roger Guay <rogerguay at centurytel.net> wrote:
> I want to drag the polygon tool to trace over an
> invisible polygon.  I 
> want the polygon tool instead of the pencil tool
> because I want an 
> arrowhead plus I want to control line width.  I want
> to use "drag" 
> because I want to control the rate at which the
> trace progresses via 
> "dragSpeed".  However I can't seem to do anything
> except trace a 
> straight line from the first point to the last point
> of the invisible 
> polygon.  Can anyone suggest how I might dynamically
> trace over the 
> hidden polygon with a variable speed, variable line
> width plus allow 
> for an arrowhead?
> 
> Thanks very much, Roger
> 
Hi Roger,
One option is to trace the polygon by setting the
'points' property to the individual points of the
invisible polygon ; something like :
--
put the points of graphic "invisiblePolygon" into \
    tInvisiblePoints
repeat for each line tPoint in tInvisiblePoints
  put return & tPoint after tVisiblePoints
  set the points of graphic "visiblePolygon" to \
      tVisiblePoints
  wait 1 second
end repeat
--
Hope this helped,
Jan Schenkel.
=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)
		
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 
    
    
More information about the use-livecode
mailing list