<?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"
	>
<channel>
	<title>Comments on: Converting Strings To Booleans</title>
	<atom:link href="http://evolve.reintroducing.com/2008/03/25/tips-n-tricks/converting-strings-to-booleans/feed/" rel="self" type="application/rss+xml" />
	<link>http://evolve.reintroducing.com/2008/03/25/tips-n-tricks/converting-strings-to-booleans/</link>
	<description>Learn &#38; Interact with the ActionScript World</description>
	<pubDate>Sat, 22 Nov 2008 08:43:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: back</title>
		<link>http://evolve.reintroducing.com/2008/03/25/tips-n-tricks/converting-strings-to-booleans/#comment-736</link>
		<dc:creator>back</dc:creator>
		<pubDate>Thu, 05 Jun 2008 07:43:32 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2008/03/25/tips-n-tricks/converting-strings-to-booleans/#comment-736</guid>
		<description>yes, sorry!</description>
		<content:encoded><![CDATA[<p>yes, sorry!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Przybylski</title>
		<link>http://evolve.reintroducing.com/2008/03/25/tips-n-tricks/converting-strings-to-booleans/#comment-735</link>
		<dc:creator>Matt Przybylski</dc:creator>
		<pubDate>Wed, 04 Jun 2008 15:37:32 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2008/03/25/tips-n-tricks/converting-strings-to-booleans/#comment-735</guid>
		<description>did you mean to post this in the image slider comments?</description>
		<content:encoded><![CDATA[<p>did you mean to post this in the image slider comments?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: back</title>
		<link>http://evolve.reintroducing.com/2008/03/25/tips-n-tricks/converting-strings-to-booleans/#comment-734</link>
		<dc:creator>back</dc:creator>
		<pubDate>Wed, 04 Jun 2008 15:35:42 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2008/03/25/tips-n-tricks/converting-strings-to-booleans/#comment-734</guid>
		<description>now it works! :)

one question: 

is it possible to turn of the shadows over the images (who make the images in the background darker)? if you don't have images with a square shape, it looks strange with the shadows...

i have seen that with "img.overlay._alpha" it is possible to turn off the shadows at the beginning. but when i click on the arrows and the images change, the shadows are again visible.</description>
		<content:encoded><![CDATA[<p>now it works! <img src='http://evolve.reintroducing.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>one question: </p>
<p>is it possible to turn of the shadows over the images (who make the images in the background darker)? if you don&#8217;t have images with a square shape, it looks strange with the shadows&#8230;</p>
<p>i have seen that with &#8220;img.overlay._alpha&#8221; it is possible to turn off the shadows at the beginning. but when i click on the arrows and the images change, the shadows are again visible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Przybylski</title>
		<link>http://evolve.reintroducing.com/2008/03/25/tips-n-tricks/converting-strings-to-booleans/#comment-732</link>
		<dc:creator>Matt Przybylski</dc:creator>
		<pubDate>Wed, 04 Jun 2008 15:12:24 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2008/03/25/tips-n-tricks/converting-strings-to-booleans/#comment-732</guid>
		<description>back,
just put that method in a class called StringUtils and you should be good to go.  That's really all I have in that class so I didn't bother posting it.</description>
		<content:encoded><![CDATA[<p>back,<br />
just put that method in a class called StringUtils and you should be good to go.  That&#8217;s really all I have in that class so I didn&#8217;t bother posting it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: back</title>
		<link>http://evolve.reintroducing.com/2008/03/25/tips-n-tricks/converting-strings-to-booleans/#comment-730</link>
		<dc:creator>back</dc:creator>
		<pubDate>Wed, 04 Jun 2008 07:19:44 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2008/03/25/tips-n-tricks/converting-strings-to-booleans/#comment-730</guid>
		<description>thank you for the information. and where can i get this utility class called StringUtils?</description>
		<content:encoded><![CDATA[<p>thank you for the information. and where can i get this utility class called StringUtils?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Przybylski</title>
		<link>http://evolve.reintroducing.com/2008/03/25/tips-n-tricks/converting-strings-to-booleans/#comment-372</link>
		<dc:creator>Matt Przybylski</dc:creator>
		<pubDate>Wed, 26 Mar 2008 14:55:30 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2008/03/25/tips-n-tricks/converting-strings-to-booleans/#comment-372</guid>
		<description>Josh,
Your enabled/separator vars work that way because you're testing against what you are bringing in from the XML, not grabbing what you brought in from the XML.  your Boolean tests an expression not just pulls the Boolean value out of the XML.  Make sense?</description>
		<content:encoded><![CDATA[<p>Josh,<br />
Your enabled/separator vars work that way because you&#8217;re testing against what you are bringing in from the XML, not grabbing what you brought in from the XML.  your Boolean tests an expression not just pulls the Boolean value out of the XML.  Make sense?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://evolve.reintroducing.com/2008/03/25/tips-n-tricks/converting-strings-to-booleans/#comment-371</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Wed, 26 Mar 2008 11:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/2008/03/25/tips-n-tricks/converting-strings-to-booleans/#comment-371</guid>
		<description>Interesting. A while ago I created a context menu gallery and had my xml looking similar to yours. I had to pass in a boolean but did not have the problem you had. None the less I did not know that a boolean had a numerical representation. I am going to have to update my string util class :). Below is the xml I was using and a piece of my code so you can see how I called it in.

Thinking about it maybe it has to do that I assigned a variable to the xml element instead of just trying to plug in String( item.attribute( "enabled" )[0] ) which would probably not work since I am casting as a string.

[as]


	
	
	


[/as]

[as]
var enabled:Boolean;
var separator:Boolean;

while(    i &#60; n )
{
	item = items[ i ];
	
	enabled = String( item.attribute( "enabled" )[0] ) !== "false";
	separator = String( item.attribute( "separator" )[0] ) !== "false";
	
	createItem( caption, enabled, separator );
	createData( item );
}
[/as]</description>
		<content:encoded><![CDATA[<p>Interesting. A while ago I created a context menu gallery and had my xml looking similar to yours. I had to pass in a boolean but did not have the problem you had. None the less I did not know that a boolean had a numerical representation. I am going to have to update my string util class :). Below is the xml I was using and a piece of my code so you can see how I called it in.</p>
<p>Thinking about it maybe it has to do that I assigned a variable to the xml element instead of just trying to plug in String( item.attribute( "enabled" )[0] ) which would probably not work since I am casting as a string.</p>
<div class="igBar"><span id="lactionscript-1"><a href="#" onclick="javascript:showPlainTxt('actionscript-1'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-1">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"> </li>
</ol>
</div>
</div>
</div>
<p></p>
<div class="igBar"><span id="lactionscript-2"><a href="#" onclick="javascript:showPlainTxt('actionscript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-2">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">enabled</span>:<span style="color: #0066CC;">Boolean</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> separator:<span style="color: #0066CC;">Boolean</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">while</span><span style="color: #66cc66;">&#40;</span>&nbsp; &nbsp; i &amp;lt;n <span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; item = items<span style="color: #66cc66;">&#91;</span> i <span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">enabled</span> = <span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span> item.<span style="color: #006600;">attribute</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">"enabled"</span> <span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#41;</span> !== <span style="color: #ff0000;">"false"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; separator = <span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span> item.<span style="color: #006600;">attribute</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">"separator"</span> <span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#41;</span> !== <span style="color: #ff0000;">"false"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; createItem<span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">caption</span>, <span style="color: #0066CC;">enabled</span>, separator <span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; createData<span style="color: #66cc66;">&#40;</span> item <span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
	</item>
</channel>
</rss>
