<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: AS3 E4X Rundown</title>
	<link>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown</link>
	<description>Welcome to dispatchEvent, a blog brought to you by Roger Braunstein of partlyhuman and Mims Wright of losdesigns.</description>
	<pubDate>Sun, 11 May 2008 22:50:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: pei</title>
		<link>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-115160</link>
		<dc:creator>pei</dc:creator>
		<pubDate>Fri, 09 May 2008 13:52:12 +0000</pubDate>
		<guid>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-115160</guid>
		<description>sorry, my xml was eaten in the comment, in case you don't understand where the tag1tag2&#62; came from. XD</description>
		<content:encoded><![CDATA[<p>sorry, my xml was eaten in the comment, in case you don&#8217;t understand where the tag1tag2&gt; came from. XD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pei</title>
		<link>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-115158</link>
		<dc:creator>pei</dc:creator>
		<pubDate>Fri, 09 May 2008 13:50:32 +0000</pubDate>
		<guid>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-115158</guid>
		<description>Hi,
thanks so much for such detail rundown! even a beginner like me feel more comfortable using E4X.

I have a question though.  I would like to build something like tagCloud.  So each tag1tag2&#62; will be tagged with few labels.  some labels will be repeated.  I asked around, and someone mentioned XPATH in as 2.0.  I check with many sites and help document didn't find anything specific to distinct the result of allTags = xxx.*.tag

I think of one solution to put the result into an array, and check if the tag has been saved, if it is, then mark the usage times +1.  

however i am still wondering if there's an easier way to deal with it directly with E4X.

thank you for your help. :)</description>
		<content:encoded><![CDATA[<p>Hi,<br />
thanks so much for such detail rundown! even a beginner like me feel more comfortable using E4X.</p>
<p>I have a question though.  I would like to build something like tagCloud.  So each tag1tag2&gt; will be tagged with few labels.  some labels will be repeated.  I asked around, and someone mentioned XPATH in as 2.0.  I check with many sites and help document didn&#8217;t find anything specific to distinct the result of allTags = xxx.*.tag</p>
<p>I think of one solution to put the result into an array, and check if the tag has been saved, if it is, then mark the usage times +1.  </p>
<p>however i am still wondering if there&#8217;s an easier way to deal with it directly with E4X.</p>
<p>thank you for your help. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joshspoon</title>
		<link>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-108109</link>
		<dc:creator>joshspoon</dc:creator>
		<pubDate>Wed, 23 Apr 2008 22:16:38 +0000</pubDate>
		<guid>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-108109</guid>
		<description>You are so right. Most E4X examples are poor.</description>
		<content:encoded><![CDATA[<p>You are so right. Most E4X examples are poor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Easton</title>
		<link>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-105269</link>
		<dc:creator>Mark Easton</dc:creator>
		<pubDate>Fri, 18 Apr 2008 10:21:09 +0000</pubDate>
		<guid>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-105269</guid>
		<description>Hey, there. Sorry, I cant see how to edit my last comment. Nevertheless I discovered what my issue was. If you look at this: http://bugs.adobe.com/jira/browse/FB-5859, you will see that the Flex 3 debugger does not support E4X. I was sitting there in the debugger trying out expressions and they were coming up with errors. Great article by the way! Many thanks, Mark.</description>
		<content:encoded><![CDATA[<p>Hey, there. Sorry, I cant see how to edit my last comment. Nevertheless I discovered what my issue was. If you look at this: <a href="http://bugs.adobe.com/jira/browse/FB-5859," rel="nofollow">http://bugs.adobe.com/jira/browse/FB-5859,</a> you will see that the Flex 3 debugger does not support E4X. I was sitting there in the debugger trying out expressions and they were coming up with errors. Great article by the way! Many thanks, Mark.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Easton</title>
		<link>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-105123</link>
		<dc:creator>Mark Easton</dc:creator>
		<pubDate>Fri, 18 Apr 2008 02:49:14 +0000</pubDate>
		<guid>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-105123</guid>
		<description>I am having a stange problem. My XML is not working! For example thePeople.person.age returns . Am using FB3. I am going nuts trying to work out what I am doing wrong. I copied and pasted the following code in to my app:

var thePeople:XML = 
    
        27
        Mims H Wright
        Teh AWesoeomes!
        &#60;![CDATA[This guy &lt;b&gt;rulz&lt;b&gt;!]]&#62;
    
    
        26
        Rog
        That guy
        
    
;</description>
		<content:encoded><![CDATA[<p>I am having a stange problem. My XML is not working! For example thePeople.person.age returns . Am using FB3. I am going nuts trying to work out what I am doing wrong. I copied and pasted the following code in to my app:</p>
<p>var thePeople:XML = </p>
<p>        27<br />
        Mims H Wright<br />
        Teh AWesoeomes!<br />
        &lt;![CDATA[This guy <b>rulz</b><b>!]]&gt;</p>
<p>        26<br />
        Rog<br />
        That guy</p>
<p>;</b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: XPath with AS3 &#171; Flexcomps&#8217;s Weblog</title>
		<link>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-103234</link>
		<dc:creator>XPath with AS3 &#171; Flexcomps&#8217;s Weblog</dc:creator>
		<pubDate>Mon, 14 Apr 2008 10:10:44 +0000</pubDate>
		<guid>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-103234</guid>
		<description>[...] in AS3 we have a cool feature of E4X support. The best article on the E4X explanation in AS3 i was able to find is one by Roger Braunstein . However i was not able to find out many Xpath based [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] in AS3 we have a cool feature of E4X support. The best article on the E4X explanation in AS3 i was able to find is one by Roger Braunstein . However i was not able to find out many Xpath based [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip Bulley</title>
		<link>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-99617</link>
		<dc:creator>Philip Bulley</dc:creator>
		<pubDate>Wed, 02 Apr 2008 17:39:15 +0000</pubDate>
		<guid>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-99617</guid>
		<description>Roger again this is top notch stuff. Really it is. The lack of good documentation for e4x is spooky, even on w3schools of whom manage to explain xpath to a decent level. First you solved my namespaces issue with ur previous post, now my attribute(name) vs @name issue. Haven't read the whole article yet, but will be back.

L E G E N D.
cheers!</description>
		<content:encoded><![CDATA[<p>Roger again this is top notch stuff. Really it is. The lack of good documentation for e4x is spooky, even on w3schools of whom manage to explain xpath to a decent level. First you solved my namespaces issue with ur previous post, now my attribute(name) vs @name issue. Haven&#8217;t read the whole article yet, but will be back.</p>
<p>L E G E N D.<br />
cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Monkey</title>
		<link>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-99528</link>
		<dc:creator>Monkey</dc:creator>
		<pubDate>Wed, 02 Apr 2008 11:28:37 +0000</pubDate>
		<guid>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-99528</guid>
		<description>YAY! i was actually getting close and you just tidy up the loose ends and now it all makes sense!

Thank you so much!!!</description>
		<content:encoded><![CDATA[<p>YAY! i was actually getting close and you just tidy up the loose ends and now it all makes sense!</p>
<p>Thank you so much!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roger Braunstein</title>
		<link>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-99393</link>
		<dc:creator>Roger Braunstein</dc:creator>
		<pubDate>Wed, 02 Apr 2008 02:15:43 +0000</pubDate>
		<guid>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-99393</guid>
		<description>&lt;a href="#comment-99181" rel="nofollow"&gt;@Monkey&lt;/a&gt;, I'm sure your technique is fine. But did you know you can iterate over the XML nodes instead of converting to an array first? The &lt;code&gt;for each.. in&lt;/code&gt; loop will take you through all the items in an &lt;code&gt;XMLList&lt;/code&gt;:
&lt;pre&gt;for each (var node:XML in projects.project)
{
   addChild(new Holder(node.title, node.date, node.url));
   //or whatever
}&lt;/pre&gt;

Or you can use the good old for loop:
&lt;pre&gt;for (var i:int = 0; i &lt; projects.project.length(); i++)
{
   var node:XML = projects.project[i];
   //and then whatever...
}&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p><a href="#comment-99181" rel="nofollow">@Monkey</a>, I&#8217;m sure your technique is fine. But did you know you can iterate over the XML nodes instead of converting to an array first? The <code>for each.. in</code> loop will take you through all the items in an <code>XMLList</code>:</p>
<pre>for each (var node:XML in projects.project)
{
   addChild(new Holder(node.title, node.date, node.url));
   //or whatever
}</pre>
<p>Or you can use the good old for loop:</p>
<pre>for (var i:int = 0; i < projects.project.length(); i++)
{
   var node:XML = projects.project[i];
   //and then whatever...
}</pre>
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Monkey</title>
		<link>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-99181</link>
		<dc:creator>Monkey</dc:creator>
		<pubDate>Tue, 01 Apr 2008 10:54:45 +0000</pubDate>
		<guid>http://www.partlyhuman.com/blog/roger/as3-e4x-rundown#comment-99181</guid>
		<description>Nice Work!

One think im having trouble with is this..

Say i have an XML with this structure:

&#60;projects&#62;
    &#60;project&#62;
      &#60;title&#62;Title1&#60;/title&#62;
      &#60;date&#62;Date1&#60;/date&#62;
      &#60;url&#62;Url1&#60;/url&#62;
    &#60;/project&#62;
    &#60;project&#62;
      &#60;title&#62;Title2&#60;/title&#62;
      &#60;date&#62;Date2&#60;/date&#62;
      &#60;url&#62;Url2&#60;/url&#62;
    &#60;/project&#62;
&#60;/projects&#62;

and i want to loop through and pass the individual elements of each project (title, date, url) as seprate variables to a new holder class (ie i have a "Holder" class that displays each record in individual clips).

Im currently doing this by turning the xml to an array and then looping through passing the variables to the new class instance and attaching to the stage, but im sure there must be an easyer way to do this with e4x!

Sorry if it makes not sense!</description>
		<content:encoded><![CDATA[<p>Nice Work!</p>
<p>One think im having trouble with is this..</p>
<p>Say i have an XML with this structure:</p>
<p>&lt;projects&gt;<br />
    &lt;project&gt;<br />
      &lt;title&gt;Title1&lt;/title&gt;<br />
      &lt;date&gt;Date1&lt;/date&gt;<br />
      &lt;url&gt;Url1&lt;/url&gt;<br />
    &lt;/project&gt;<br />
    &lt;project&gt;<br />
      &lt;title&gt;Title2&lt;/title&gt;<br />
      &lt;date&gt;Date2&lt;/date&gt;<br />
      &lt;url&gt;Url2&lt;/url&gt;<br />
    &lt;/project&gt;<br />
&lt;/projects&gt;</p>
<p>and i want to loop through and pass the individual elements of each project (title, date, url) as seprate variables to a new holder class (ie i have a &#8220;Holder&#8221; class that displays each record in individual clips).</p>
<p>Im currently doing this by turning the xml to an array and then looping through passing the variables to the new class instance and attaching to the stage, but im sure there must be an easyer way to do this with e4x!</p>
<p>Sorry if it makes not sense!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
