[Flashcoders] drawing lines

2010-02-25 Thread Lehr, Theodore
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 0xff 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


Re: [Flashcoders] drawing lines

2010-02-25 Thread Ivan Dembicki
Hello,

http://bezier.ru/wp-content/uploads/2008/06/bezier.swf?demo=9
http://code.google.com/p/bezier/


-- 
iv
http://www.bezier.ru
http://bezier.googlecode.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] drawing lines

2010-02-25 Thread tom rhodes
look at lineGradientStyle, or use your dotted line to mask a shape with the
diff colours in the right places, or draw different lines, one with one
colour and one in another colour...


On 25 February 2010 16:28, Lehr, Theodore ted_l...@federal.dell.com wrote:

 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 0xff 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


RE: [Flashcoders] drawing lines

2010-02-25 Thread Merrill, Jason
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 0xff 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