<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Applying a cascading style sheet to a TextArea control in Flex</title>
	<link>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 05 Dec 2008 00:07:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Alex C</title>
		<link>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-17169</link>
		<author>Alex C</author>
		<pubDate>Wed, 03 Dec 2008 15:47:48 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-17169</guid>
		<description>Worked like a charm! Thanks, PeterD. One question: I noticed that in your CSS declarations you didn't have any "px" or other measurement units after the sizes. I've tried setting the margin-bottom:10 on an H1 tag, but it won't take. Any thoughts? It looks like this,

h4{
    font-size: 14;
    margin-bottom: 10;
}

Thanks.</description>
		<content:encoded><![CDATA[<p>Worked like a charm! Thanks, PeterD. One question: I noticed that in your CSS declarations you didn&#8217;t have any &#8220;px&#8221; or other measurement units after the sizes. I&#8217;ve tried setting the margin-bottom:10 on an H1 tag, but it won&#8217;t take. Any thoughts? It looks like this,</p>
<p>h4{<br />
    font-size: 14;<br />
    margin-bottom: 10;<br />
}</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-16189</link>
		<author>peterd</author>
		<pubDate>Tue, 14 Oct 2008 21:45:39 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-16189</guid>
		<description>Sean Baker,

I don't believe there is a vertical align style in Flex 3/Halo.

Peter</description>
		<content:encoded><![CDATA[<p>Sean Baker,</p>
<p>I don&#8217;t believe there is a vertical align style in Flex 3/Halo.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean Baker</title>
		<link>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-16186</link>
		<author>Sean Baker</author>
		<pubDate>Tue, 14 Oct 2008 15:52:29 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-16186</guid>
		<description>Hi Peter,

I need to apply "vertical-align" to a TextArea and can't seem to find how to do that anywhere.  Can you point me in the right direction?

Thanks,

Sean.</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>I need to apply &#8220;vertical-align&#8221; to a TextArea and can&#8217;t seem to find how to do that anywhere.  Can you point me in the right direction?</p>
<p>Thanks,</p>
<p>Sean.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Probert</title>
		<link>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-15824</link>
		<author>Lee Probert</author>
		<pubDate>Wed, 24 Sep 2008 11:28:01 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-15824</guid>
		<description>Would be great if you could use MXML to generate a StyleSheet object. Anyone know if you can parse a Style Tag in?</description>
		<content:encoded><![CDATA[<p>Would be great if you could use MXML to generate a StyleSheet object. Anyone know if you can parse a Style Tag in?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SB</title>
		<link>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-12384</link>
		<author>SB</author>
		<pubDate>Wed, 30 Apr 2008 09:15:11 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-12384</guid>
		<description>I am trying to style a TextArea that is called by a Repeater and I keep getting an error that Flex cannot access a property or method of a null object reference.  I think it is because the TextArea doesn't exist until after the stylesheet is called.  Any ideas?</description>
		<content:encoded><![CDATA[<p>I am trying to style a TextArea that is called by a Repeater and I keep getting an error that Flex cannot access a property or method of a null object reference.  I think it is because the TextArea doesn&#8217;t exist until after the stylesheet is called.  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-9624</link>
		<author>peterd</author>
		<pubDate>Wed, 02 Apr 2008 14:29:57 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-9624</guid>
		<description>JP Venter,

Does setting the &lt;code&gt;styleSheet&lt;/code&gt; property again after setting the &lt;code&gt;text&lt;/code&gt; property work?

Peter</description>
		<content:encoded><![CDATA[<p>JP Venter,</p>
<p>Does setting the <code>styleSheet</code> property again after setting the <code>text</code> property work?</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JP Venter</title>
		<link>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-9617</link>
		<author>JP Venter</author>
		<pubDate>Wed, 02 Apr 2008 10:52:51 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-9617</guid>
		<description>Hi PeterD,

I have a situation with external css and a textarea control which is populated with html (styled with classes) drawn from a database. Building on from your example above, the textarea is initially styled correctly. But try loading in new text to replace the text in the textarea after having scrolled. For me the styling bombs out, but what is weird is that it is only after a scroll of the textarea has occurred. I am using flex builder 3.

Do have any idea why this may be happening?

Thanks, JP</description>
		<content:encoded><![CDATA[<p>Hi PeterD,</p>
<p>I have a situation with external css and a textarea control which is populated with html (styled with classes) drawn from a database. Building on from your example above, the textarea is initially styled correctly. But try loading in new text to replace the text in the textarea after having scrolled. For me the styling bombs out, but what is weird is that it is only after a scroll of the textarea has occurred. I am using flex builder 3.</p>
<p>Do have any idea why this may be happening?</p>
<p>Thanks, JP</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-7848</link>
		<author>Steve</author>
		<pubDate>Mon, 24 Mar 2008 12:20:02 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-7848</guid>
		<description>Thanks for another superb flex example. I have tried using this method with the textarea of a richTextEditor component. I get an error due to the fact that the input text is obviously editable . Is there anyway of applying this method to editable text or is it the fact that it calls the stylesheet at runtime is the problem and therefore would need to parse the css again after editing text? Hope you can help.

Steve</description>
		<content:encoded><![CDATA[<p>Thanks for another superb flex example. I have tried using this method with the textarea of a richTextEditor component. I get an error due to the fact that the input text is obviously editable . Is there anyway of applying this method to editable text or is it the fact that it calls the stylesheet at runtime is the problem and therefore would need to parse the css again after editing text? Hope you can help.</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Buhler</title>
		<link>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-7809</link>
		<author>David Buhler</author>
		<pubDate>Sat, 22 Mar 2008 21:00:08 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-7809</guid>
		<description>Seems the RegEx for the blog ate part of my comment...I was using the underline tag in HTML to create the look of a hyperlink.</description>
		<content:encoded><![CDATA[<p>Seems the RegEx for the blog ate part of my comment&#8230;I was using the underline tag in HTML to create the look of a hyperlink.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Buhler</title>
		<link>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-7808</link>
		<author>David Buhler</author>
		<pubDate>Sat, 22 Mar 2008 20:54:59 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/#comment-7808</guid>
		<description>I would be curious to see if the same styles could be applied to a Rich Text Editor. My understanding is that they cannot be. The best I've come up with is to apply a  tag along with a color attribute, which presents limitations.

We've found that the inability in the RTE to display hyperlinks leads to a lot of confusion.

Useful demo of the TA styles (and much appreciated), though.</description>
		<content:encoded><![CDATA[<p>I would be curious to see if the same styles could be applied to a Rich Text Editor. My understanding is that they cannot be. The best I&#8217;ve come up with is to apply a  tag along with a color attribute, which presents limitations.</p>
<p>We&#8217;ve found that the inability in the RTE to display hyperlinks leads to a lot of confusion.</p>
<p>Useful demo of the TA styles (and much appreciated), though.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
