<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Drawing dashed lines with ActionScript 3</title>
	<atom:link href="http://www.cartogrammar.com/blog/drawing-dashed-lines-with-actionscript-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cartogrammar.com/blog/drawing-dashed-lines-with-actionscript-3/</link>
	<description>Adventures in maps, cartography, visualization, and Flash</description>
	<lastBuildDate>Mon, 08 Mar 2010 22:01:14 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: MT</title>
		<link>http://www.cartogrammar.com/blog/drawing-dashed-lines-with-actionscript-3/comment-page-1/#comment-14888</link>
		<dc:creator>MT</dc:creator>
		<pubDate>Tue, 02 Mar 2010 13:20:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.cartogrammar.com/blog/?p=5#comment-14888</guid>
		<description>Here&#039;s a simple function to change the color (including alpha) of what have been and what will be drawn.


// set a new color, including alpha, and change the already drawed line
public function changeColor(c:Number,a:Number=1):void {
	lineColor = c;
	lineAlpha = a;
	stroke.graphics.lineStyle(lineWeight, lineColor, lineAlpha, false, &quot;none&quot;, CapsStyle.NONE);
	
	var newColor:ColorTransform = new ColorTransform();
	newColor.alphaOffset = a;
	newColor.color = c;
	stroke.transform.colorTransform = newColor;
}</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a simple function to change the color (including alpha) of what have been and what will be drawn.</p>
<p>// set a new color, including alpha, and change the already drawed line<br />
public function changeColor(c:Number,a:Number=1):void {<br />
	lineColor = c;<br />
	lineAlpha = a;<br />
	stroke.graphics.lineStyle(lineWeight, lineColor, lineAlpha, false, &#8220;none&#8221;, CapsStyle.NONE);</p>
<p>	var newColor:ColorTransform = new ColorTransform();<br />
	newColor.alphaOffset = a;<br />
	newColor.color = c;<br />
	stroke.transform.colorTransform = newColor;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus</title>
		<link>http://www.cartogrammar.com/blog/drawing-dashed-lines-with-actionscript-3/comment-page-1/#comment-12656</link>
		<dc:creator>Marcus</dc:creator>
		<pubDate>Fri, 05 Feb 2010 03:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.cartogrammar.com/blog/?p=5#comment-12656</guid>
		<description>Thanks this class is very well coded ;)!</description>
		<content:encoded><![CDATA[<p>Thanks this class is very well coded <img src='http://www.cartogrammar.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolaj</title>
		<link>http://www.cartogrammar.com/blog/drawing-dashed-lines-with-actionscript-3/comment-page-1/#comment-10502</link>
		<dc:creator>Nicolaj</dc:creator>
		<pubDate>Fri, 01 Jan 2010 17:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.cartogrammar.com/blog/?p=5#comment-10502</guid>
		<description>Thanks that worked!</description>
		<content:encoded><![CDATA[<p>Thanks that worked!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mortimer Neuß</title>
		<link>http://www.cartogrammar.com/blog/drawing-dashed-lines-with-actionscript-3/comment-page-1/#comment-10493</link>
		<dc:creator>Mortimer Neuß</dc:creator>
		<pubDate>Fri, 01 Jan 2010 07:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.cartogrammar.com/blog/?p=5#comment-10493</guid>
		<description>Just change the Line to:

for (var i:int=0; i&lt;lengthsArray.length; i++){</description>
		<content:encoded><![CDATA[<p>Just change the Line to:</p>
<p>for (var i:int=0; i&lt;lengthsArray.length; i++){</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolaj</title>
		<link>http://www.cartogrammar.com/blog/drawing-dashed-lines-with-actionscript-3/comment-page-1/#comment-10289</link>
		<dc:creator>Nicolaj</dc:creator>
		<pubDate>Mon, 28 Dec 2009 13:20:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.cartogrammar.com/blog/?p=5#comment-10289</guid>
		<description>Andy &gt; Hmm, guess you&#039;re right have the same, but I still have the problem with
for (var i:int in lengthsArray){

???</description>
		<content:encoded><![CDATA[<p>Andy &gt; Hmm, guess you&#8217;re right have the same, but I still have the problem with<br />
for (var i:int in lengthsArray){</p>
<p>???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arjun Mehta</title>
		<link>http://www.cartogrammar.com/blog/drawing-dashed-lines-with-actionscript-3/comment-page-1/#comment-10149</link>
		<dc:creator>Arjun Mehta</dc:creator>
		<pubDate>Thu, 24 Dec 2009 21:46:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.cartogrammar.com/blog/?p=5#comment-10149</guid>
		<description>Thank you for this. This is quite useful! I&#039;ve needed to draw dotted/dashed lines for a few applications I&#039;m working on.
I&#039;ve also created a &lt;a href=&quot;http://www.arjunmehta.net/dotted-and-dashed-circles-using-actionscript-3/&quot; rel=&quot;nofollow&quot;&gt;couple classes for drawing dotted or dashed circles&lt;/a&gt; easily. I figured I&#039;d mention that here in case anyone is looking for it.</description>
		<content:encoded><![CDATA[<p>Thank you for this. This is quite useful! I&#8217;ve needed to draw dotted/dashed lines for a few applications I&#8217;m working on.<br />
I&#8217;ve also created a <a href="http://www.arjunmehta.net/dotted-and-dashed-circles-using-actionscript-3/" rel="nofollow">couple classes for drawing dotted or dashed circles</a> easily. I figured I&#8217;d mention that here in case anyone is looking for it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: reed</title>
		<link>http://www.cartogrammar.com/blog/drawing-dashed-lines-with-actionscript-3/comment-page-1/#comment-10097</link>
		<dc:creator>reed</dc:creator>
		<pubDate>Tue, 22 Dec 2009 23:59:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.cartogrammar.com/blog/?p=5#comment-10097</guid>
		<description>Very Handy , thank you Andy</description>
		<content:encoded><![CDATA[<p>Very Handy , thank you Andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Woodruff</title>
		<link>http://www.cartogrammar.com/blog/drawing-dashed-lines-with-actionscript-3/comment-page-1/#comment-9984</link>
		<dc:creator>Andy Woodruff</dc:creator>
		<pubDate>Thu, 17 Dec 2009 20:42:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.cartogrammar.com/blog/?p=5#comment-9984</guid>
		<description>Sorry for being slow to reply here...

It looks like an extra &quot;.length&quot; found its way into that line somehow. On line 54 I just have:

for (var i:int in lengthsArray){</description>
		<content:encoded><![CDATA[<p>Sorry for being slow to reply here&#8230;</p>
<p>It looks like an extra &#8220;.length&#8221; found its way into that line somehow. On line 54 I just have:</p>
<p>for (var i:int in lengthsArray){</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicolaj ma</title>
		<link>http://www.cartogrammar.com/blog/drawing-dashed-lines-with-actionscript-3/comment-page-1/#comment-9741</link>
		<dc:creator>nicolaj ma</dc:creator>
		<pubDate>Wed, 09 Dec 2009 15:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.cartogrammar.com/blog/?p=5#comment-9741</guid>
		<description>Sorry forgot to add that:

DashedLine.as, Line 54
for (var i:int in lengthsArray.length){</description>
		<content:encoded><![CDATA[<p>Sorry forgot to add that:</p>
<p>DashedLine.as, Line 54<br />
for (var i:int in lengthsArray.length){</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Woodruff</title>
		<link>http://www.cartogrammar.com/blog/drawing-dashed-lines-with-actionscript-3/comment-page-1/#comment-9347</link>
		<dc:creator>Andy Woodruff</dc:creator>
		<pubDate>Mon, 30 Nov 2009 21:56:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.cartogrammar.com/blog/?p=5#comment-9347</guid>
		<description>Does it tell you where the error occurred? (i.e. the line number) I may have something wrong in there...</description>
		<content:encoded><![CDATA[<p>Does it tell you where the error occurred? (i.e. the line number) I may have something wrong in there&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
