<br />
<b>Warning</b>:  include() [<a href='function.include'>function.include</a>]: Unable to access /var/www/html/rogue-development/blog2/wp-content/advanced-cache.php in <b>/var/www/html/rogue-development/blog2/wp-settings.php</b> on line <b>62</b><br />
<br />
<b>Warning</b>:  include(/var/www/html/rogue-development/blog2/wp-content/advanced-cache.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/var/www/html/rogue-development/blog2/wp-settings.php</b> on line <b>62</b><br />
<br />
<b>Warning</b>:  include() [<a href='function.include'>function.include</a>]: Failed opening '/var/www/html/rogue-development/blog2/wp-content/advanced-cache.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in <b>/var/www/html/rogue-development/blog2/wp-settings.php</b> on line <b>62</b><br />
<br />
<b>Notice</b>:  add_option was called with an argument that is <strong>deprecated</strong> since version 2.3 with no alternative available. in <b>/var/www/html/rogue-development/blog2/wp-includes/functions.php</b> on line <b>3468</b><br />
<br />
<b>Notice</b>:  register_sidebar_widget is <strong>deprecated</strong> since version 2.8! Use wp_register_sidebar_widget() instead. in <b>/var/www/html/rogue-development/blog2/wp-includes/functions.php</b> on line <b>3382</b><br />
<br />
<b>Notice</b>:  register_widget_control is <strong>deprecated</strong> since version 2.8! Use wp_register_widget_control() instead. in <b>/var/www/html/rogue-development/blog2/wp-includes/functions.php</b> on line <b>3382</b><br />
<?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: AS3 Drawing API oddity</title>
	<atom:link href="http://www.rogue-development.com/blog2/2007/06/as3-drawing-api-oddity/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rogue-development.com/blog2/2007/06/as3-drawing-api-oddity/</link>
	<description>Comments and thoughts on technology from Marc Hughes</description>
	<lastBuildDate>Sun, 30 Jan 2011 18:36:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: kenneth</title>
		<link>http://www.rogue-development.com/blog2/2007/06/as3-drawing-api-oddity/comment-page-1/#comment-478</link>
		<dc:creator>kenneth</dc:creator>
		<pubDate>Sat, 04 Oct 2008 02:30:34 +0000</pubDate>
		<guid isPermaLink="false">http://rogue-development.com/blog2/?p=20#comment-478</guid>
		<description>I&#039;ve found the same issue with lineTo when drawing two lines of different colour on the same shape:

the lineStyle can get transposed between the two different lines, despite resetting them during the drawing code as above.

oddly enough if you change the order of the lineStyle and moveTo it often helps (i.e. linestyle after moveTo).  Adding the lines to different shapes solves the problem but presumably creates extra overhead which (probably?) slows down the application</description>
		<content:encoded><![CDATA[<p>I&#8217;ve found the same issue with lineTo when drawing two lines of different colour on the same shape:</p>
<p>the lineStyle can get transposed between the two different lines, despite resetting them during the drawing code as above.</p>
<p>oddly enough if you change the order of the lineStyle and moveTo it often helps (i.e. linestyle after moveTo).  Adding the lines to different shapes solves the problem but presumably creates extra overhead which (probably?) slows down the application</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noel</title>
		<link>http://www.rogue-development.com/blog2/2007/06/as3-drawing-api-oddity/comment-page-1/#comment-13</link>
		<dc:creator>Noel</dc:creator>
		<pubDate>Thu, 07 Jun 2007 15:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://rogue-development.com/blog2/?p=20#comment-13</guid>
		<description>Looks like a bug to me as well.&lt;br/&gt;&lt;br/&gt;It&#039;s not limited to drawing circles, as rects cause the same issue.&lt;br/&gt;&lt;br/&gt;A simple workaround is to slip a moveTo in there to disconnect the original line from the circle draw:&lt;br/&gt;&lt;br/&gt;comp.graphics.clear();&lt;br/&gt;comp.graphics.lineStyle(5, 0x888888);&lt;br/&gt;comp.graphics.moveTo(0,0);&lt;br/&gt;comp.graphics.lineTo(0,50);&lt;br/&gt;&lt;br/&gt;--comp.graphics.moveTo(0,0);--&lt;br/&gt;&lt;br/&gt;comp.graphics.lineStyle(0, 0);&lt;br/&gt;comp.graphics.beginFill(0x188888);&lt;br/&gt;comp.graphics.drawCircle(10,10,5);&lt;br/&gt;comp.graphics.endFill();</description>
		<content:encoded><![CDATA[<p>Looks like a bug to me as well.</p>
<p>It&#8217;s not limited to drawing circles, as rects cause the same issue.</p>
<p>A simple workaround is to slip a moveTo in there to disconnect the original line from the circle draw:</p>
<p>comp.graphics.clear();<br />comp.graphics.lineStyle(5, 0&#215;888888);<br />comp.graphics.moveTo(0,0);<br />comp.graphics.lineTo(0,50);</p>
<p>&#8211;comp.graphics.moveTo(0,0);&#8211;</p>
<p>comp.graphics.lineStyle(0, 0);<br />comp.graphics.beginFill(0&#215;188888);<br />comp.graphics.drawCircle(10,10,5);<br />comp.graphics.endFill();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://www.rogue-development.com/blog2/2007/06/as3-drawing-api-oddity/comment-page-1/#comment-12</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Thu, 07 Jun 2007 14:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://rogue-development.com/blog2/?p=20#comment-12</guid>
		<description>Sure enough, that works.&lt;br/&gt;&lt;br/&gt;So if I use a fill anywhere, I should use a fill on every single discrete drawing operation?&lt;br/&gt;&lt;br/&gt;Seems like a bug to me, but if that&#039;s the case it&#039;s easy enough to work around.</description>
		<content:encoded><![CDATA[<p>Sure enough, that works.</p>
<p>So if I use a fill anywhere, I should use a fill on every single discrete drawing operation?</p>
<p>Seems like a bug to me, but if that&#8217;s the case it&#8217;s easy enough to work around.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Grden</title>
		<link>http://www.rogue-development.com/blog2/2007/06/as3-drawing-api-oddity/comment-page-1/#comment-11</link>
		<dc:creator>John Grden</dc:creator>
		<pubDate>Thu, 07 Jun 2007 13:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://rogue-development.com/blog2/?p=20#comment-11</guid>
		<description>I believe it&#039;s because you have to finish each draw you do with endFill()  other wise, it thinks it&#039;s an unfinished &quot;box&quot;&lt;br/&gt;&lt;br/&gt;So, you&#039;d have to split those up into drawing your gray line, endFill(), then draw the circle. &lt;br/&gt;&lt;br/&gt;The code below gives me a gray line, then the circle like you describe:&lt;br/&gt;&lt;br/&gt;comp.graphics.clear();&lt;br/&gt;comp.graphics.beginFill(0x188888, 0);&lt;br/&gt;comp.graphics.lineStyle(5, 0x888888);&lt;br/&gt;comp.graphics.moveTo(0,0);&lt;br/&gt;comp.graphics.lineTo(0,50);&lt;br/&gt;comp.graphics.endFill();&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;comp.graphics.beginFill(0x188888);&lt;br/&gt;comp.graphics.lineStyle(0, 0);&lt;br/&gt;comp.graphics.drawCircle(10,10,5);&lt;br/&gt;comp.graphics.endFill();</description>
		<content:encoded><![CDATA[<p>I believe it&#8217;s because you have to finish each draw you do with endFill()  other wise, it thinks it&#8217;s an unfinished &#8220;box&#8221;</p>
<p>So, you&#8217;d have to split those up into drawing your gray line, endFill(), then draw the circle. </p>
<p>The code below gives me a gray line, then the circle like you describe:</p>
<p>comp.graphics.clear();<br />comp.graphics.beginFill(0&#215;188888, 0);<br />comp.graphics.lineStyle(5, 0&#215;888888);<br />comp.graphics.moveTo(0,0);<br />comp.graphics.lineTo(0,50);<br />comp.graphics.endFill();</p>
<p>comp.graphics.beginFill(0&#215;188888);<br />comp.graphics.lineStyle(0, 0);<br />comp.graphics.drawCircle(10,10,5);<br />comp.graphics.endFill();</p>
]]></content:encoded>
	</item>
</channel>
</rss>

