<?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: SuperTextInput &#8211; Building a Custom Component in Flex 4</title>
	<atom:link href="http://saturnboy.com/2010/07/supertextinput-building-a-custom-component/feed/" rel="self" type="application/rss+xml" />
	<link>http://saturnboy.com/2010/07/supertextinput-building-a-custom-component/</link>
	<description>Code, Work, and Life</description>
	<lastBuildDate>Mon, 23 Jan 2012 16:21:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Jimmy Johns</title>
		<link>http://saturnboy.com/2010/07/supertextinput-building-a-custom-component/comment-page-1/#comment-379</link>
		<dc:creator>Jimmy Johns</dc:creator>
		<pubDate>Tue, 10 Jan 2012 18:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1489#comment-379</guid>
		<description>I upgraded to Flash Builder 4.6 and now get the following errors:

&quot;Overriding a function that is not marked for override&quot; 

That error is at Line 1 which is:

package dashboard.components {

and line 35, which is:

public function get prompt():String {

Then, I get another error:

&quot;A conflict exists with inherited definition spark.components.supportClasses:SkinnableTextBase.promptDisplay in namespace public.&quot;

This is at line 16, which is:

public var promptDisplay:Label;

davi&#039;s solution above was unsuccessful in fixing this problem.  Please help!</description>
		<content:encoded><![CDATA[<p>I upgraded to Flash Builder 4.6 and now get the following errors:</p>
<p>&#8220;Overriding a function that is not marked for override&#8221; </p>
<p>That error is at Line 1 which is:</p>
<p>package dashboard.components {</p>
<p>and line 35, which is:</p>
<p>public function get prompt():String {</p>
<p>Then, I get another error:</p>
<p>&#8220;A conflict exists with inherited definition spark.components.supportClasses:SkinnableTextBase.promptDisplay in namespace public.&#8221;</p>
<p>This is at line 16, which is:</p>
<p>public var promptDisplay:Label;</p>
<p>davi&#8217;s solution above was unsuccessful in fixing this problem.  Please help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: davi</title>
		<link>http://saturnboy.com/2010/07/supertextinput-building-a-custom-component/comment-page-1/#comment-357</link>
		<dc:creator>davi</dc:creator>
		<pubDate>Tue, 22 Nov 2011 18:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1489#comment-357</guid>
		<description>@Rico, yep, to have this component working with the filterFunction, you must dispatch the &lt;code&gt;TextOperationEvent.CHANGE&lt;/code&gt; event!

&lt;pre lang=&quot;Actionscript&quot;&gt;
private function clearClick(e:MouseEvent):void {
    text = &quot;&quot;;
    dispatchEvent(new TextOperationEvent(TextOperationEvent.CHANGE));
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@Rico, yep, to have this component working with the filterFunction, you must dispatch the <code>TextOperationEvent.CHANGE</code> event!</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> clearClick<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;&quot;</span>;
    dispatchEvent<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> TextOperationEvent<span style="color: #66cc66;">&#40;</span>TextOperationEvent.<span style="color: #006600;">CHANGE</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://saturnboy.com/2010/07/supertextinput-building-a-custom-component/comment-page-1/#comment-324</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Fri, 09 Sep 2011 19:07:15 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1489#comment-324</guid>
		<description>Seems to have broken with Flex 4.5.1.  It throws a bunch of compile errors like:


Description	Resource	Path	Location	Type
1024: Overriding a function that is not marked for override.	PromptingTextInput.as	/Flex/src/com/saturnboy/SuperTextInput/components	line 30	Flex Problem</description>
		<content:encoded><![CDATA[<p>Seems to have broken with Flex 4.5.1.  It throws a bunch of compile errors like:</p>
<p>Description	Resource	Path	Location	Type<br />
1024: Overriding a function that is not marked for override.	PromptingTextInput.as	/Flex/src/com/saturnboy/SuperTextInput/components	line 30	Flex Problem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rico</title>
		<link>http://saturnboy.com/2010/07/supertextinput-building-a-custom-component/comment-page-1/#comment-274</link>
		<dc:creator>rico</dc:creator>
		<pubDate>Fri, 01 Apr 2011 10:17:52 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1489#comment-274</guid>
		<description>excellent tutorial and code samples - thank you very much. 

Just a little information for the ones using the input in conjunction with a filterFunction (e.g. ArrayCollection). In the clearClick() function you need to dispatch a TextOperationEvent.CHANGE event manually. (Maybe already clear for everyone)</description>
		<content:encoded><![CDATA[<p>excellent tutorial and code samples &#8211; thank you very much. </p>
<p>Just a little information for the ones using the input in conjunction with a filterFunction (e.g. ArrayCollection). In the clearClick() function you need to dispatch a TextOperationEvent.CHANGE event manually. (Maybe already clear for everyone)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justin</title>
		<link>http://saturnboy.com/2010/07/supertextinput-building-a-custom-component/comment-page-1/#comment-242</link>
		<dc:creator>justin</dc:creator>
		<pubDate>Mon, 27 Dec 2010 22:56:06 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1489#comment-242</guid>
		<description>@higgins: All positioning is done in the skin itself (as it should be).  You should just create a &quot;ClearRightSkin&quot; and swap the left/right attributes of the text field and the button.</description>
		<content:encoded><![CDATA[<p>@higgins: All positioning is done in the skin itself (as it should be).  You should just create a &#8220;ClearRightSkin&#8221; and swap the left/right attributes of the text field and the button.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: higgins</title>
		<link>http://saturnboy.com/2010/07/supertextinput-building-a-custom-component/comment-page-1/#comment-241</link>
		<dc:creator>higgins</dc:creator>
		<pubDate>Mon, 27 Dec 2010 16:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1489#comment-241</guid>
		<description>Can you explain why the Clear Button is always on the right?  I&#039;m trying to get it on the left of the field, is this a SkinPart issue or is that position set somewhere and I&#039;m not seeing it?  

Thanks.</description>
		<content:encoded><![CDATA[<p>Can you explain why the Clear Button is always on the right?  I&#8217;m trying to get it on the left of the field, is this a SkinPart issue or is that position set somewhere and I&#8217;m not seeing it?  </p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justin</title>
		<link>http://saturnboy.com/2010/07/supertextinput-building-a-custom-component/comment-page-1/#comment-217</link>
		<dc:creator>justin</dc:creator>
		<pubDate>Mon, 29 Nov 2010 20:43:44 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1489#comment-217</guid>
		<description>@brianj774: Yes. Sorry I wasn&#039;t clear.  You must wire skins to components in your application&#039;s CSS.  As a component author, I can&#039;t do this wiring for you.</description>
		<content:encoded><![CDATA[<p>@brianj774: Yes. Sorry I wasn&#8217;t clear.  You must wire skins to components in your application&#8217;s CSS.  As a component author, I can&#8217;t do this wiring for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brianj774</title>
		<link>http://saturnboy.com/2010/07/supertextinput-building-a-custom-component/comment-page-1/#comment-216</link>
		<dc:creator>brianj774</dc:creator>
		<pubDate>Mon, 29 Nov 2010 19:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1489#comment-216</guid>
		<description>@Erik &amp; @Justin...

I am having this same issue, but on following the suggestions made by Justin, and still having no luck at all, I did some digging, and found some &lt;a href=&quot;http://polygeek.com/2259_flex_cause-of-the-css-type-selectors-not-supported-error&quot; rel=&quot;nofollow&quot;&gt;helpful info&lt;/a&gt; from polygeek.

He says, &quot;That is a Type selector and so will work but only in the Application root. If you try that from inside another component then you’ll see a warning: CSS type selectors are not supported in components: ‘whateverComponentYouAreIn’.  You will have to take the above CSS and place it in &lt;code&gt;&lt;s:Application&gt;&lt;/code&gt; or in a CSS file that is declared in the &lt;code&gt;&lt;s:Application&gt;&lt;/code&gt;.&quot;</description>
		<content:encoded><![CDATA[<p>@Erik &amp; @Justin&#8230;</p>
<p>I am having this same issue, but on following the suggestions made by Justin, and still having no luck at all, I did some digging, and found some <a href="http://polygeek.com/2259_flex_cause-of-the-css-type-selectors-not-supported-error" rel="nofollow">helpful info</a> from polygeek.</p>
<p>He says, &#8220;That is a Type selector and so will work but only in the Application root. If you try that from inside another component then you’ll see a warning: CSS type selectors are not supported in components: ‘whateverComponentYouAreIn’.  You will have to take the above CSS and place it in <code>&lt;s:Application&gt;</code> or in a CSS file that is declared in the <code>&lt;s:Application&gt;</code>.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saulo Brust</title>
		<link>http://saturnboy.com/2010/07/supertextinput-building-a-custom-component/comment-page-1/#comment-178</link>
		<dc:creator>Saulo Brust</dc:creator>
		<pubDate>Wed, 04 Aug 2010 13:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1489#comment-178</guid>
		<description>Great component!

I am developing a component similar to other features and possibilities. If you want to contribute in some way, or just give such a component, take a look here: http://github.com/brust/SearchInput</description>
		<content:encoded><![CDATA[<p>Great component!</p>
<p>I am developing a component similar to other features and possibilities. If you want to contribute in some way, or just give such a component, take a look here: <a href="http://github.com/brust/SearchInput" rel="nofollow">http://github.com/brust/SearchInput</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justin</title>
		<link>http://saturnboy.com/2010/07/supertextinput-building-a-custom-component/comment-page-1/#comment-176</link>
		<dc:creator>justin</dc:creator>
		<pubDate>Tue, 03 Aug 2010 15:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1489#comment-176</guid>
		<description>@Erik: All of my example code is typically packaged one level deep (aka I don&#039;t prefix everything with com.saturnboy).  So, components are in &lt;code&gt;components&lt;/code&gt;, skins are in &lt;code&gt;skins&lt;/code&gt;, etc.

So if you re-package the SuperTextInput component you need to change the package name in four places:
&lt;ol&gt;
&lt;li&gt;In the component itself: the &lt;code&gt;package&lt;/code&gt; directive.&lt;/li&gt;
&lt;li&gt;In the skin: the &lt;code&gt;HostComponent&lt;/code&gt;, and optionally in the skin&#039;s code if there are any &lt;code&gt;skinClass&lt;/code&gt; attributes.&lt;/li&gt;
&lt;li&gt;In your code: the &lt;code&gt;xmlns:components&lt;/code&gt; namespace&lt;/li&gt;
&lt;li&gt;In the CSS: the &lt;code&gt;@namespace components&lt;/code&gt; namespace&lt;/li&gt;
&lt;/ol&gt;

For your error, you must have missed one of the above. Good luck.</description>
		<content:encoded><![CDATA[<p>@Erik: All of my example code is typically packaged one level deep (aka I don&#8217;t prefix everything with com.saturnboy).  So, components are in <code>components</code>, skins are in <code>skins</code>, etc.</p>
<p>So if you re-package the SuperTextInput component you need to change the package name in four places:</p>
<ol>
<li>In the component itself: the <code>package</code> directive.</li>
<li>In the skin: the <code>HostComponent</code>, and optionally in the skin&#8217;s code if there are any <code>skinClass</code> attributes.</li>
<li>In your code: the <code>xmlns:components</code> namespace</li>
<li>In the CSS: the <code>@namespace components</code> namespace</li>
</ol>
<p>For your error, you must have missed one of the above. Good luck.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

