<?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: Actionscript 3- Vector to Array</title>
	<atom:link href="http://macmartine.com/blog/2009/02/actionscript_3_vector_to_array.html/feed" rel="self" type="application/rss+xml" />
	<link>http://macmartine.com/blog/2009/02/actionscript_3_vector_to_array.html</link>
	<description>This is how I see it.</description>
	<lastBuildDate>Mon, 11 Oct 2010 08:29:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Daniel Bunte</title>
		<link>http://macmartine.com/blog/2009/02/actionscript_3_vector_to_array.html/comment-page-1#comment-101</link>
		<dc:creator>Daniel Bunte</dc:creator>
		<pubDate>Wed, 17 Feb 2010 21:57:49 +0000</pubDate>
		<guid isPermaLink="false">http://macmartine.com/blog/?p=37#comment-101</guid>
		<description>well, it ate the angle brackets... &lt; sorry about that</description>
		<content:encoded><![CDATA[<p>well, it ate the angle brackets&#8230; &lt; sorry about that</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Bunte</title>
		<link>http://macmartine.com/blog/2009/02/actionscript_3_vector_to_array.html/comment-page-1#comment-100</link>
		<dc:creator>Daniel Bunte</dc:creator>
		<pubDate>Wed, 17 Feb 2010 21:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://macmartine.com/blog/?p=37#comment-100</guid>
		<description>Hi there!
Just found this post. Am I allowed to clean and speed it up a bit?

public static function VectorToArray( v:Object ):Array
{
    var vec : Vector. = v as Vector.,
        arr : Array = [];
    for each( var i : Object in vec )
    {
        arr[arr.length] = i;
    }
    return arr;
}

Cheers,
 Daniel

PostScriptum: Note this: fast instanceiation(I think the word is wrong, but you know what I mean :)) is like
new [&#039;here&#039;, &#039;it&#039;, &#039;is&#039;];</description>
		<content:encoded><![CDATA[<p>Hi there!<br />
Just found this post. Am I allowed to clean and speed it up a bit?</p>
<p>public static function VectorToArray( v:Object ):Array<br />
{<br />
    var vec : Vector. = v as Vector.,<br />
        arr : Array = [];<br />
    for each( var i : Object in vec )<br />
    {<br />
        arr[arr.length] = i;<br />
    }<br />
    return arr;<br />
}</p>
<p>Cheers,<br />
 Daniel</p>
<p>PostScriptum: Note this: fast instanceiation(I think the word is wrong, but you know what I mean <img src='http://macmartine.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) is like<br />
new ['here', 'it', 'is'];</p>
]]></content:encoded>
	</item>
</channel>
</rss>

