<?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>Wonderolie &#187; flex</title>
	<atom:link href="http://www.wonderolie.nl/category/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wonderolie.nl</link>
	<description>Interactive design, Front-end, Flash, Flex, jQuery, Silverlight</description>
	<lastBuildDate>Wed, 21 Dec 2011 21:11:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Reading ArrayCollections in Flash</title>
		<link>http://www.wonderolie.nl/2009/reading-arraycollection-in-flash/</link>
		<comments>http://www.wonderolie.nl/2009/reading-arraycollection-in-flash/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 20:17:21 +0000</pubDate>
		<dc:creator>Wonderolie</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.wonderolie.nl/?p=38</guid>
		<description><![CDATA[I always thought that arraycollection were only accessible within Flex. Last week however I needed to access some complex data from a webservice in flash. To access the webservice I used a very handy flash extension, which provided the remoting classes from Flex into flash. The result however contained a ArrayCollections. Luckily I found out [...]]]></description>
			<content:encoded><![CDATA[<p>I always thought that arraycollection  were only accessible within Flex. Last week however I needed to access some complex data from a webservice in flash. To access the webservice I used a very handy flash extension, which provided the remoting classes from Flex into flash. The result however contained a ArrayCollections. Luckily I found out that is was perfectly possible to parse the data from the arraycollections into arrays and object. I knew that the result had to contain a Clips Array within each Chapter as you can see in the debugger screenshot. Now in flash I could access these Clips like this</p>
<pre>
var _chapters_ar:Array = _chapters.list.source;

for( var i:int = 0; i < _chapters_ar.length; i++ )
{
     var _clips_ar:Array =  _chapters_ar[i].Clips.list.source;

     for (var j:int = 0; j < _clips_ar.length; j++)
     {
        ...
}
</pre>
<p>see screenshot below</p>
<p><img src="http://www.wonderolie.nl/examples/flash-arraycollection/flash-arraycollection.jpg" alt="debug view in flash" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wonderolie.nl/2009/reading-arraycollection-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

