<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.alexstanhope.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Alex Stanhope - speed test</title>
 <link>http://www.alexstanhope.com/taxonomy/term/17/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>Drawing 2D primitives in a browser</title>
 <link>http://www.alexstanhope.com/blog/flash/136/drawing-2d-primitives-browser</link>
 <description>&lt;p class=&quot;heading&quot;&gt;Flash&lt;/p&gt;
&lt;p&gt;Action Script 3.0 (as3) has native functions to draw basic 2D primitives.  In AS2 you had to calculate all the points on, say a circle, then draw it using line segments.  I&#039;ve written a &lt;a href=&quot;/system/files/090802basicFlashCircleDrawingSpeedTestInAS3.zip&quot;&gt;little demo which draws circles&lt;/a&gt;. This time trial aims to complete in roughly 100ms.&lt;/p&gt;
&lt;div id=&quot;basicFlashCircle&quot; class=&quot;flash_embed&quot;&gt;
&lt;p&gt;In order to view this Flash content your browser must support Javascript and Flash.&lt;/p&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
// &lt;![CDATA[

var so = new SWFObject(&quot;/system/files/090802basicFlashCircleDrawingSpeedTestInAS3.swf&quot;, &quot;090802basicFlashCircleDrawingSpeedTestInAS3&quot;, &quot;500&quot;, &quot;250&quot;, &quot;7&quot;, &quot;#FFFFFF&quot;);
so.write(&quot;basicFlashCircle&quot;);

// ]]&gt;
&lt;/![cdata[&gt;&lt;/script&gt;&lt;p&gt;&lt;a href=&quot;http://www.alexstanhope.com/blog/flash/136/drawing-2d-primitives-browser&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <category domain=/blog/as3">as3</category>
 <category domain=/blog/flash">flash</category>
 <category domain=/blog/speed-test">speed test</category>
 <category domain=/blog/technology">technology</category>
 <enclosure url=/system/files/090802basicFlashCircleDrawingSpeedTestInAS3.zip" length="12608" type="application/zip" />
 <pubDate>Sun, 02 Aug 2009 10:27:36 +0000</pubDate>
 <dc:creator>alex</dc:creator>
 <guid isPermaLink="false">136 at http://www.alexstanhope.com</guid>
</item>
</channel>
</rss>
