<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BechBox blog &#187; Actionscript</title>
	<atom:link href="http://blog.bechbox.dk/category/actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bechbox.dk</link>
	<description>useable but exciting IT design</description>
	<lastBuildDate>Thu, 27 May 2010 21:52:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New site for Ditte Valente</title>
		<link>http://blog.bechbox.dk/2009/04/new-site-for-ditte-valente/</link>
		<comments>http://blog.bechbox.dk/2009/04/new-site-for-ditte-valente/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 07:57:29 +0000</pubDate>
		<dc:creator>Mikkel Bech</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[BechBox]]></category>
		<category><![CDATA[Client work]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.bechbox.dk/?p=67</guid>
		<description><![CDATA[
Today we launched a new Flash site for photographer Ditte Valente. She&#8217;s very talented &#8211; check out her work and the new site at:

http://www.dittevalente.dk
]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="Dieter" src="http://www.bechbox.dk/photo/blog/dittevalente.jpg" alt="" /></p>
<p>Today we launched a new Flash site for photographer Ditte Valente. She&#8217;s very talented &#8211; check out her work and the new site at:</p>
<p>
<a href="http://www.dittevalente.dk" target="_blank">http://www.dittevalente.dk</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bechbox.dk/2009/04/new-site-for-ditte-valente/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A warm welcome to the new Actionscript Vector class</title>
		<link>http://blog.bechbox.dk/2009/02/warm-welcome-to-the-new-actionscript-vector-class/</link>
		<comments>http://blog.bechbox.dk/2009/02/warm-welcome-to-the-new-actionscript-vector-class/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 10:39:41 +0000</pubDate>
		<dc:creator>Mikkel Bech</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.bechbox.dk/?p=48</guid>
		<description><![CDATA[Adobe introduced a new Vector class in Flash Player 10 &#8211; very much like the good old vector class from C++. And it&#8217;s quite a bit faster than using arrays &#8230; pop this into a new Flash file and check out how it performs:
function testArray():Number{
var startTime:Date = new Date();
var arr:Array = new Array();
var i:int=0;
for (i=0;i&#60;=500000;i++){
arr.push(i);
}
var [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe introduced a new Vector class in Flash Player 10 &#8211; very much like the good old vector class from C++. And it&#8217;s quite a bit faster than using arrays &#8230; pop this into a new Flash file and check out how it performs:</p>
<blockquote><p>function testArray():Number{<br />
var startTime:Date = new Date();<br />
var arr:Array = new Array();<br />
var i:int=0;<br />
for (i=0;i&lt;=500000;i++){<br />
arr.push(i);<br />
}</p>
<p>var sum:Number = 0;<br />
var len:int = arr.length;<br />
for(var j:int = 0; j &lt; len; j++)<br />
{<br />
sum += arr[j];<br />
};</p>
<p>return (new Date()).getTime() &#8211; startTime.getTime();<br />
}</p>
<p>function testVector():Number{<br />
var startTime:Date = new Date();<br />
var vec:Vector.&lt;int&gt; = new Vector.&lt;int&gt;();<br />
var i:int=0;<br />
for (i=0;i&lt;=500000;i++){<br />
vec.push(i);<br />
}</p>
<p>var sum:Number = 0;<br />
var len:int = vec.length;<br />
for(var j:int = 0; j &lt; len; j++)<br />
{<br />
sum += vec[j];<br />
};</p>
<p>return (new Date()).getTime() &#8211; startTime.getTime();<br />
}</p>
<p>trace(&#8220;testArray: &#8221; + testArray());<br />
trace(&#8220;testVector: &#8221; + testVector());</p></blockquote>
<p>When I execute the code on my machine, the vector performs twice as fast!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bechbox.dk/2009/02/warm-welcome-to-the-new-actionscript-vector-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
