<?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>redredred &#187; security</title>
	<atom:link href="http://www.redredred.com.au/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redredred.com.au</link>
	<description>redredred developers talk about what they are working on</description>
	<lastBuildDate>Sat, 20 Feb 2010 01:55:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flex Authorize Tag</title>
		<link>http://www.redredred.com.au/flex-authorize-tag/</link>
		<comments>http://www.redredred.com.au/flex-authorize-tag/#comments</comments>
		<pubDate>Fri, 22 May 2009 15:01:58 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[flex security]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.redredred.com.au/flex-authorize-tag/</guid>
		<description><![CDATA[<p>This component has the following properties which need to be set: roles - one or more roles (strings) which are to be evaluated against. userRoles - one or more roles(strings) which the user has components - one or more components which will be effected if evaluation of roles against userRoles fails. type - type of evaluation to be performed one of: ‘hasAny’ - evaluates true if userRole exists in any of the roles ‘hasAll,’ - evaluates to true only if userRoles contains all roles ‘hasNone’ - evaluates to true if userRoles does not contain any of the roles.</p>
<p><br />
...containsRole(_roles, userRole)) { return false; } } return true; } protected function evaluateNone() : Boolean { for each(var userRole : String in _userRoles) { if (containsRole(_roles, userRole)) { return false; } } return true; } protected function containsRole(roles : ICollectionView, role : String) : Boolean { for each(var userRole : String in roles) { if (role == userRole) { return true; } } return false; } protected function applyResult(result : Boolean) : void { for each(var comp : UIComponent in _components) { switch(behaviour) { case DISABLE : comp.enabled = result; break; case VANISH : comp.visible = result; break; case COLLAPSE : comp.visible = result; comp.includeInLayout = result; } } } public function get roles():Object { return _roles; } public function set roles(val:Object):void { _roles = convertToCollection(val); evaluate(); } public function get userRoles():Object { return _userRoles; } public function set userRoles(val:Object):void { _userRoles = convertToCollection(val); userRoles.addEventListener(CollectionEvent.</p>
]]></description>
		<wfw:commentRss>http://www.redredred.com.au/flex-authorize-tag/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
