Sure, you can certainly draw that "dashed line" with a series of lines and the result will look the same to the end users - but there is no way to do it in a single lineTo() method call. You just need to do some simple divisional math, using a for loop to calculate the next X and Y points for the next line and swapping out the color.
Jason Merrill Bank of America Global Learning Learning & Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -----Original Message----- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: Thursday, February 25, 2010 10:28 AM To: Flash Coders List Subject: [Flashcoders] drawing lines I would like to draw a line that fluctuates color. For instance - the line would be 6px think and it would go along 30px with a 0x262e3b color and then 3px of 0xffffff and the repeat for a gven width... is it possible to make such a customized dashed line? _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders