<?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: E4X Attribute Filter Doesn&#039;t Work In Switch Statements</title>
	<atom:link href="http://www.zorked.com/flash/e4x-attribute-filter-doesnt-work-in-switch-statements/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zorked.com/flash/e4x-attribute-filter-doesnt-work-in-switch-statements/</link>
	<description>Progressive Web Development</description>
	<lastBuildDate>Wed, 03 Mar 2010 14:50:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: paypeder</title>
		<link>http://www.zorked.com/flash/e4x-attribute-filter-doesnt-work-in-switch-statements/#comment-17729</link>
		<dc:creator>paypeder</dc:creator>
		<pubDate>Mon, 08 Feb 2010 05:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorked.com/flash/e4x-attribute-filter-doesnt-work-in-switch-statements/#comment-17729</guid>
		<description>я так считаю: превосходно!!


&lt;a href=&quot;http://myzhchini.co.cc/barnaul6/?p=10&quot; rel=&quot;nofollow&quot;&gt;познакомиться с австралийцем Барнаул&lt;/a&gt; - Барнаул девушка хочет секса по телефону
&lt;a href=&quot;http://myzhchini.co.cc/ivanovo1/?p=29&quot; rel=&quot;nofollow&quot;&gt;женщина познакомится с молодым парнем&lt;/a&gt; - в Иваново познакомлюсь с китайцем
&lt;a href=&quot;http://myzhchini.co.cc/zhukovskij7/?p=6&quot; rel=&quot;nofollow&quot;&gt;в Жуковском как познакомиться с хорошим парнем&lt;/a&gt; секс знакомства мужчины Жуковский
&lt;a href=&quot;http://myzhchini.co.cc/surgut7/?p=10&quot; rel=&quot;nofollow&quot;&gt;в Сургуте мальчик на ночь секс&lt;/a&gt;: в Сургуте секс с турками
&lt;a href=&quot;http://myzhchini.co.cc/moskva4/?p=26&quot; rel=&quot;nofollow&quot;&gt;пара познакомится с мужчиной&lt;/a&gt; где познакомиться с хорошим парнем
&lt;a href=&quot;http://myzhchini.co.cc/imki7/?p=15&quot; rel=&quot;nofollow&quot;&gt;замужние женщины хотят секса&lt;/a&gt; в Химках знакомства с иностранцами
&lt;a href=&quot;http://myzhchini.co.cc/murom2/?p=17&quot; rel=&quot;nofollow&quot;&gt;где познакомиться в Муроме с хорошим парнем&lt;/a&gt; женщина желает познакомиться для секса Муром
&lt;a href=&quot;http://myzhchini.co.cc/moskva4/?p=27&quot; rel=&quot;nofollow&quot;&gt;познакомиться в Москве с турком&lt;/a&gt;: сайт знакомств с богатыми мужчинами
&lt;a href=&quot;http://myzhchini.co.cc/kaluga6/?p=16&quot; rel=&quot;nofollow&quot;&gt;хочу познакомиться с негром Калуга&lt;/a&gt; познакомлюсь с нудистами
&lt;a href=&quot;http://myzhchini.co.cc/moskva4/?p=21&quot; rel=&quot;nofollow&quot;&gt;отец одиночка познакомится&lt;/a&gt;: Москва познакомлюсь с парнем 16 лет
&lt;a href=&quot;http://myzhchini.co.cc/novoshahtinsk5/?p=12&quot; rel=&quot;nofollow&quot;&gt;познакомлюсь с импотентом в Новошахтинске&lt;/a&gt; Новошахтинск международное брачное агентство
&lt;a href=&quot;http://myzhchini.co.cc/asavjurt6/?p=6&quot; rel=&quot;nofollow&quot;&gt;познакомлюсь с мужчиной с ребенком Хасавюрт&lt;/a&gt; хочу секса в Хасавюрте с мальчиком
&lt;a href=&quot;http://myzhchini.co.cc/lipeck8/?p=12&quot; rel=&quot;nofollow&quot;&gt;девушка познакомится с парнем Липецк&lt;/a&gt; - познакомлюсь с мужчиной ребенком
&lt;a href=&quot;http://myzhchini.co.cc/ivanovo1/?p=5&quot; rel=&quot;nofollow&quot;&gt;женщина хочет мужчину для секса&lt;/a&gt; - познакомлюсь с женатым
&lt;a href=&quot;http://myzhchini.co.cc/velikij_novgorod8/?p=5&quot; rel=&quot;nofollow&quot;&gt;познакомлюсь с парнем 17 лет&lt;/a&gt; - в Великом Новгороде девушка хочет познакомиться с парнем
&lt;a href=&quot;http://myzhchini.co.cc/novoshahtinsk5/?p=20&quot; rel=&quot;nofollow&quot;&gt;Новошахтинск познакомлюсь с замужней&lt;/a&gt; - одинокая девушка желает познакомиться
&lt;a href=&quot;http://myzhchini.co.cc/volgodonsk_glazov6/?p=25&quot; rel=&quot;nofollow&quot;&gt;хочу попробывать секс в Волгодонске Глазове с парнем&lt;/a&gt; - транс познакомится с парнем
&lt;a href=&quot;http://myzhchini.co.cc/nevinnomyssk8/?p=9&quot; rel=&quot;nofollow&quot;&gt;где познакомиться с молодым человеком&lt;/a&gt; - Невинномысск познакомлюсь с мужчиной для встреч
&lt;a href=&quot;http://myzhchini.co.cc/podolsk5/?p=21&quot; rel=&quot;nofollow&quot;&gt;познакомлюсь с мужчиной по смс&lt;/a&gt;: знакомства с мужчинами для брака в Подольске</description>
		<content:encoded><![CDATA[<p>я так считаю: превосходно!!</p>
<p><a href="http://myzhchini.co.cc/barnaul6/?p=10">познакомиться с австралийцем Барнаул</a> - Барнаул девушка хочет секса по телефону<br />
<a href="http://myzhchini.co.cc/ivanovo1/?p=29">женщина познакомится с молодым парнем</a> - в Иваново познакомлюсь с китайцем<br />
<a href="http://myzhchini.co.cc/zhukovskij7/?p=6">в Жуковском как познакомиться с хорошим парнем</a> секс знакомства мужчины Жуковский<br />
<a href="http://myzhchini.co.cc/surgut7/?p=10">в Сургуте мальчик на ночь секс</a>: в Сургуте секс с турками<br />
<a href="http://myzhchini.co.cc/moskva4/?p=26">пара познакомится с мужчиной</a> где познакомиться с хорошим парнем<br />
<a href="http://myzhchini.co.cc/imki7/?p=15">замужние женщины хотят секса</a> в Химках знакомства с иностранцами<br />
<a href="http://myzhchini.co.cc/murom2/?p=17">где познакомиться в Муроме с хорошим парнем</a> женщина желает познакомиться для секса Муром<br />
<a href="http://myzhchini.co.cc/moskva4/?p=27">познакомиться в Москве с турком</a>: сайт знакомств с богатыми мужчинами<br />
<a href="http://myzhchini.co.cc/kaluga6/?p=16">хочу познакомиться с негром Калуга</a> познакомлюсь с нудистами<br />
<a href="http://myzhchini.co.cc/moskva4/?p=21">отец одиночка познакомится</a>: Москва познакомлюсь с парнем 16 лет<br />
<a href="http://myzhchini.co.cc/novoshahtinsk5/?p=12">познакомлюсь с импотентом в Новошахтинске</a> Новошахтинск международное брачное агентство<br />
<a href="http://myzhchini.co.cc/asavjurt6/?p=6">познакомлюсь с мужчиной с ребенком Хасавюрт</a> хочу секса в Хасавюрте с мальчиком<br />
<a href="http://myzhchini.co.cc/lipeck8/?p=12">девушка познакомится с парнем Липецк</a> - познакомлюсь с мужчиной ребенком<br />
<a href="http://myzhchini.co.cc/ivanovo1/?p=5">женщина хочет мужчину для секса</a> - познакомлюсь с женатым<br />
<a href="http://myzhchini.co.cc/velikij_novgorod8/?p=5">познакомлюсь с парнем 17 лет</a> - в Великом Новгороде девушка хочет познакомиться с парнем<br />
<a href="http://myzhchini.co.cc/novoshahtinsk5/?p=20">Новошахтинск познакомлюсь с замужней</a> - одинокая девушка желает познакомиться<br />
<a href="http://myzhchini.co.cc/volgodonsk_glazov6/?p=25">хочу попробывать секс в Волгодонске Глазове с парнем</a> - транс познакомится с парнем<br />
<a href="http://myzhchini.co.cc/nevinnomyssk8/?p=9">где познакомиться с молодым человеком</a> - Невинномысск познакомлюсь с мужчиной для встреч<br />
<a href="http://myzhchini.co.cc/podolsk5/?p=21">познакомлюсь с мужчиной по смс</a>: знакомства с мужчинами для брака в Подольске</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.zorked.com/flash/e4x-attribute-filter-doesnt-work-in-switch-statements/#comment-13552</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Fri, 24 Apr 2009 14:36:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorked.com/flash/e4x-attribute-filter-doesnt-work-in-switch-statements/#comment-13552</guid>
		<description>Insane!!

I&#039;m so glad I found this and I&#039;m not going mad. The braces solution works great. Of course you can also solve the problem by branching out of the switch statement into a new function too. Thanks! :-)</description>
		<content:encoded><![CDATA[<p>Insane!!</p>
<p>I'm so glad I found this and I'm not going mad. The braces solution works great. Of course you can also solve the problem by branching out of the switch statement into a new function too. Thanks! <img src='http://www.zorked.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peteSK</title>
		<link>http://www.zorked.com/flash/e4x-attribute-filter-doesnt-work-in-switch-statements/#comment-13091</link>
		<dc:creator>peteSK</dc:creator>
		<pubDate>Mon, 06 Apr 2009 20:01:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorked.com/flash/e4x-attribute-filter-doesnt-work-in-switch-statements/#comment-13091</guid>
		<description>Surround your switch case with { }  i.e

switch (anything) {
case &quot;testcase&quot;:{
  var xlData:XMLList = xmlData.Books.Book.(@author == &#039;Dickens&#039;);
}
break;
}

should fix it.

If you think about it, it kind of makes sense where the error is  as inside a filter &#039;this&#039; is scoped to the class however many methods are scoped to the current node thats being filtered.  I can imagine the codes quite messy... :)</description>
		<content:encoded><![CDATA[<p>Surround your switch case with { }  i.e</p>
<p>switch (anything) {<br />
case "testcase":{<br />
  var xlData:XMLList = xmlData.Books.Book.(@author == 'Dickens');<br />
}<br />
break;<br />
}</p>
<p>should fix it.</p>
<p>If you think about it, it kind of makes sense where the error is  as inside a filter 'this' is scoped to the class however many methods are scoped to the current node thats being filtered.  I can imagine the codes quite messy... <img src='http://www.zorked.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://www.zorked.com/flash/e4x-attribute-filter-doesnt-work-in-switch-statements/#comment-10217</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Tue, 24 Feb 2009 17:31:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorked.com/flash/e4x-attribute-filter-doesnt-work-in-switch-statements/#comment-10217</guid>
		<description>Yeah, this one nailed me today.  I am surprised with as much e4x filtering as I use it didn&#039;t nail me earlier.

I didn&#039;t have to use a function to fix, I simply declared the XML variable outside of the switch

var x:XML;

switch(item.name().toString()) {
	case &quot;section&quot;:
		x = content_data.section.(name == item.@label)[0];
		break;
						
	case &quot;page&quot;:
		x = content_data.section.page.(name == item.@label)[0];
		break;
}</description>
		<content:encoded><![CDATA[<p>Yeah, this one nailed me today.  I am surprised with as much e4x filtering as I use it didn't nail me earlier.</p>
<p>I didn't have to use a function to fix, I simply declared the XML variable outside of the switch</p>
<p>var x:XML;</p>
<p>switch(item.name().toString()) {<br />
	case "section":<br />
		x = content_data.section.(name == item.@label)[0];<br />
		break;</p>
<p>	case "page":<br />
		x = content_data.section.page.(name == item.@label)[0];<br />
		break;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.zorked.com/flash/e4x-attribute-filter-doesnt-work-in-switch-statements/#comment-8198</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 05 Feb 2009 21:54:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorked.com/flash/e4x-attribute-filter-doesnt-work-in-switch-statements/#comment-8198</guid>
		<description>Well, here&#039;s the solution I came up with - maybe it will help others:

//inside switch
var xml:XMLList = getFilteredXML(myXML.node1.node2, &quot;languag&quot;, &quot;english&quot;);
trace(xml);
//end of switch


private function getFilteredXML(_xml:XMLList, _attr:String, _val:String):XMLList {
	return _xml.(attribute(_attr) == _val);
}


Simply takes the E4X filter out of the switch by way of a function call - works well too!</description>
		<content:encoded><![CDATA[<p>Well, here's the solution I came up with - maybe it will help others:</p>
<p>//inside switch<br />
var xml:XMLList = getFilteredXML(myXML.node1.node2, "languag", "english");<br />
trace(xml);<br />
//end of switch</p>
<p>private function getFilteredXML(_xml:XMLList, _attr:String, _val:String):XMLList {<br />
	return _xml.(attribute(_attr) == _val);<br />
}</p>
<p>Simply takes the E4X filter out of the switch by way of a function call - works well too!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jordan</title>
		<link>http://www.zorked.com/flash/e4x-attribute-filter-doesnt-work-in-switch-statements/#comment-8197</link>
		<dc:creator>jordan</dc:creator>
		<pubDate>Thu, 05 Feb 2009 21:46:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorked.com/flash/e4x-attribute-filter-doesnt-work-in-switch-statements/#comment-8197</guid>
		<description>Nope, I haven&#039;t found anything better, unfortunately. Glad this helped you troubleshoot though!</description>
		<content:encoded><![CDATA[<p>Nope, I haven't found anything better, unfortunately. Glad this helped you troubleshoot though!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.zorked.com/flash/e4x-attribute-filter-doesnt-work-in-switch-statements/#comment-8190</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 05 Feb 2009 21:15:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorked.com/flash/e4x-attribute-filter-doesnt-work-in-switch-statements/#comment-8190</guid>
		<description>This has been driving me crazy for days!

Found your site after the bug report gave me better search criteria.

Have you found any solutions other than a giant IF statement?</description>
		<content:encoded><![CDATA[<p>This has been driving me crazy for days!</p>
<p>Found your site after the bug report gave me better search criteria.</p>
<p>Have you found any solutions other than a giant IF statement?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
