<?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: Hiding Properties in Flex Components</title>
	<atom:link href="http://blog.ashier.com/2008/03/25/hiding-properties-in-flex-components/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ashier.com/2008/03/25/hiding-properties-in-flex-components/</link>
	<description>flash / flex / air development</description>
	<pubDate>Sat, 22 Nov 2008 00:55:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Sid Maskit</title>
		<link>http://blog.ashier.com/2008/03/25/hiding-properties-in-flex-components/#comment-925</link>
		<dc:creator>Sid Maskit</dc:creator>
		<pubDate>Thu, 24 Jul 2008 01:42:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ashier.com/2008/03/25/hiding-properties-in-flex-components/#comment-925</guid>
		<description>Quick follow-up. It turns out that the Exclude metadata tag does even less than I thought it does. All it does is make it so the excluded property will not show up in the code hinting list. You can still use the property, even within the tag declaring that component that it is a property of. So, continuing the example from my previous comment, it will work just fine to do the following:

&#60;myNamespace:MyComponent id=”myComponent” btn.label=“modified” /&#62;</description>
		<content:encoded><![CDATA[<p>Quick follow-up. It turns out that the Exclude metadata tag does even less than I thought it does. All it does is make it so the excluded property will not show up in the code hinting list. You can still use the property, even within the tag declaring that component that it is a property of. So, continuing the example from my previous comment, it will work just fine to do the following:</p>
<p>&lt;myNamespace:MyComponent id=”myComponent” btn.label=“modified” /&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sid Maskit</title>
		<link>http://blog.ashier.com/2008/03/25/hiding-properties-in-flex-components/#comment-924</link>
		<dc:creator>Sid Maskit</dc:creator>
		<pubDate>Thu, 24 Jul 2008 01:12:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ashier.com/2008/03/25/hiding-properties-in-flex-components/#comment-924</guid>
		<description>It is sort of true that "btn" won't be accessible outside that component, but there are limits on this. Let's say that your custom component is in the file MyComponent.mxml, and that we would therefore instantiate it within another file as follows:

&#60;myNamespace:MyComponent id="myComponent" /&#62;

If we try to use the btn attribute within that tag, it will not be available to us. However, we can still access the button subcomponent for things such as binding. Thus we can add another tag which would bind to the button subcomponent, like this:

&#60;mx:Text text="{myComponent.btn.label}" /&#62;

Not only would this not cause a compiler error, but it would work correctly. Further, we can access the subcomponent button using ActionScript, such as this:

this.myComponent.btn.label = "modified";

And that will also work. Thus it turns out that the [Exclude] is limited to altering what attributes are available within the tag that declares a component.</description>
		<content:encoded><![CDATA[<p>It is sort of true that &#8220;btn&#8221; won&#8217;t be accessible outside that component, but there are limits on this. Let&#8217;s say that your custom component is in the file MyComponent.mxml, and that we would therefore instantiate it within another file as follows:</p>
<p>&lt;myNamespace:MyComponent id=&#8221;myComponent&#8221; /&gt;</p>
<p>If we try to use the btn attribute within that tag, it will not be available to us. However, we can still access the button subcomponent for things such as binding. Thus we can add another tag which would bind to the button subcomponent, like this:</p>
<p>&lt;mx:Text text=&#8221;{myComponent.btn.label}&#8221; /&gt;</p>
<p>Not only would this not cause a compiler error, but it would work correctly. Further, we can access the subcomponent button using ActionScript, such as this:</p>
<p>this.myComponent.btn.label = &#8220;modified&#8221;;</p>
<p>And that will also work. Thus it turns out that the [Exclude] is limited to altering what attributes are available within the tag that declares a component.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
