<?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: Condensing HTML white space in the TextArea control in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Hamazasp Avetisyan</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/comment-page-1/#comment-10193</link>
		<dc:creator>Hamazasp Avetisyan</dc:creator>
		<pubDate>Wed, 23 Nov 2011 11:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-10193</guid>
		<description>Hi, Thank you Peter.
MXML is created for flex, and it&#039;s very nice that it has static capability. The style that you are writing, is nice, so no need to change your style limiting it only by AS. People that using only AS better to learn Flex basics, that will help them to understand the architecture of mx/spark components at all.

Thank you once again!
H.A.</description>
		<content:encoded><![CDATA[<p>Hi, Thank you Peter.<br />
MXML is created for flex, and it&#8217;s very nice that it has static capability. The style that you are writing, is nice, so no need to change your style limiting it only by AS. People that using only AS better to learn Flex basics, that will help them to understand the architecture of mx/spark components at all.</p>
<p>Thank you once again!<br />
H.A.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/comment-page-1/#comment-3151</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 30 Apr 2009 08:42:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-3151</guid>
		<description>Russ,

This line? &lt;code&gt;&lt;mx:String id=&quot;lorem&quot; source=&quot;lorem.html&quot; /&gt;&lt;/code&gt;

It&#039;s creating a String object in MXML with an identifier of &quot;lorem&quot; and loading the contents of an external .HTML file, lorem.txt, into it.

I didn&#039;t post the contents of the lorem.html file above since it was just boring dummy text, but you can browse the Flex project source if you&#039;re curious about the file layout: http://blog.flexexamples.com/wp-content/uploads/TextArea_condenseWhite_test/bin/srcview/index.html

Peter</description>
		<content:encoded><![CDATA[<p>Russ,</p>
<p>This line? <code>&lt;mx:String id="lorem" source="lorem.html" /&gt;</code></p>
<p>It&#8217;s creating a String object in MXML with an identifier of &#8220;lorem&#8221; and loading the contents of an external .HTML file, lorem.txt, into it.</p>
<p>I didn&#8217;t post the contents of the lorem.html file above since it was just boring dummy text, but you can browse the Flex project source if you&#8217;re curious about the file layout: <a href="http://blog.flexexamples.com/wp-content/uploads/TextArea_condenseWhite_test/bin/srcview/index.html" rel="nofollow">http://blog.flexexamples.com/wp-content/uploads/TextArea_condenseWhite_test/bin/srcview/index.html</a></p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Russ</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/comment-page-1/#comment-3150</link>
		<dc:creator>Russ</dc:creator>
		<pubDate>Wed, 29 Apr 2009 16:38:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-3150</guid>
		<description>OK I must be missing something here, what is &quot;lorem&quot; that the string source is referencing?
are you loading in a text file, xml?</description>
		<content:encoded><![CDATA[<p>OK I must be missing something here, what is &#8220;lorem&#8221; that the string source is referencing?<br />
are you loading in a text file, xml?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/comment-page-1/#comment-3153</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Fri, 14 Nov 2008 16:07:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-3153</guid>
		<description>abhishek,

If it looks like a Flex bug, can you please file it at http://bugs.adobe.com/flex/ and include a simple test case. Or, if it looks like a Flash Player bug, can you please file it at http://bugs.adobe.com/flashplayer/ and include a simple test case.

Peter</description>
		<content:encoded><![CDATA[<p>abhishek,</p>
<p>If it looks like a Flex bug, can you please file it at <a href="http://bugs.adobe.com/flex/" rel="nofollow">http://bugs.adobe.com/flex/</a> and include a simple test case. Or, if it looks like a Flash Player bug, can you please file it at <a href="http://bugs.adobe.com/flashplayer/" rel="nofollow">http://bugs.adobe.com/flashplayer/</a> and include a simple test case.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhishek</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/comment-page-1/#comment-3152</link>
		<dc:creator>abhishek</dc:creator>
		<pubDate>Fri, 14 Nov 2008 12:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-3152</guid>
		<description>when i show 2 images 1 below other with their titles, it showing me 1 image then its title then below it 2 nd img title and then 2nd image.
is  all html tags are working properlly in flex ?</description>
		<content:encoded><![CDATA[<p>when i show 2 images 1 below other with their titles, it showing me 1 image then its title then below it 2 nd img title and then 2nd image.<br />
is  all html tags are working properlly in flex ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/comment-page-1/#comment-3149</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Fri, 25 Apr 2008 02:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-3149</guid>
		<description>Actually, I turned this into a new entry (so you can view source, see a SWF, etc), &lt;a href=&quot;http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-richtexteditor-control-in-flex/&quot; rel=&quot;nofollow&quot;&gt;&lt;u&gt;&quot;Condensing HTML white space in the RichTextEditor control in Flex&quot;&lt;/u&gt;&lt;/a&gt;.

Peter</description>
		<content:encoded><![CDATA[<p>Actually, I turned this into a new entry (so you can view source, see a SWF, etc), <a href="http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-richtexteditor-control-in-flex/" rel="nofollow"><u>&#8220;Condensing HTML white space in the RichTextEditor control in Flex&#8221;</u></a>.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/comment-page-1/#comment-3148</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Thu, 24 Apr 2008 23:52:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-3148</guid>
		<description>&lt;a href=&quot;http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12265&quot; rel=&quot;nofollow&quot;&gt;Marcio&lt;/a&gt;,

Does this work for you?
&lt;pre class=&quot;code&quot;&gt;
&lt;mx:RichTextEditor id=&quot;richTextEditor&quot;
        htmlText=&quot;{str}&quot;
        textAreaStyleName=&quot;myTextAreaStyleName&quot;
        width=&quot;100%&quot;
        height=&quot;100%&quot;
        creationComplete=&quot;richTextEditor.textArea.condenseWhite = true;&quot; /&gt;
&lt;/pre&gt;

Or:
&lt;pre class=&quot;code&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function checkBox_change(evt:Event):void {
                richTextEditor.textArea.condenseWhite = checkBox.selected;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:String id=&quot;str&quot; source=&quot;lorem.txt&quot; /&gt;

    &lt;mx:ApplicationControlBar dock=&quot;true&quot;&gt;
        &lt;mx:Form styleName=&quot;plain&quot;&gt;
            &lt;mx:FormItem label=&quot;condenseWhite:&quot;&gt;
                &lt;mx:CheckBox id=&quot;checkBox&quot;
                        change=&quot;checkBox_change(event);&quot; /&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:RichTextEditor id=&quot;richTextEditor&quot;
            htmlText=&quot;{str}&quot;
            textAreaStyleName=&quot;myTextAreaStyleName&quot;
            width=&quot;100%&quot;
            height=&quot;100%&quot; /&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12265" rel="nofollow">Marcio</a>,</p>
<p>Does this work for you?</p>
<pre class="code">
&lt;mx:RichTextEditor id="richTextEditor"
        htmlText="{str}"
        textAreaStyleName="myTextAreaStyleName"
        width="100%"
        height="100%"
        creationComplete="richTextEditor.textArea.condenseWhite = true;" /&gt;
</pre>
<p>Or:</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function checkBox_change(evt:Event):void {
                richTextEditor.textArea.condenseWhite = checkBox.selected;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:String id="str" source="lorem.txt" /&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Form styleName="plain"&gt;
            &lt;mx:FormItem label="condenseWhite:"&gt;
                &lt;mx:CheckBox id="checkBox"
                        change="checkBox_change(event);" /&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:RichTextEditor id="richTextEditor"
            htmlText="{str}"
            textAreaStyleName="myTextAreaStyleName"
            width="100%"
            height="100%" /&gt;

&lt;/mx:Application&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcio</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/comment-page-1/#comment-3147</link>
		<dc:creator>Marcio</dc:creator>
		<pubDate>Thu, 24 Apr 2008 17:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-3147</guid>
		<description>How to condense white space around HTML tags or TXT using the Flex RichTextEditor control

?</description>
		<content:encoded><![CDATA[<p>How to condense white space around HTML tags or TXT using the Flex RichTextEditor control</p>
<p>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ozgur Uksal</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/comment-page-1/#comment-3146</link>
		<dc:creator>Ozgur Uksal</dc:creator>
		<pubDate>Thu, 24 Apr 2008 15:20:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-3146</guid>
		<description>Hi Peter,
Thank you for your time. Even though it takes more time to write in actionscript, it is the only way to build real applications like creating visual controls/components and containers at run time. I don&#039;t find mxml useful because it is used for building static controls. Most of the examples I found online and books are using mxml which is unfair. I need to improve my skill set on Flex. Anyone can drag and drop controls in Flex, and mxml is generated by default. Therefore, I need some examples in actionscript to improve my skills. I appreciated your time and examples on your site.

Sincerely,</description>
		<content:encoded><![CDATA[<p>Hi Peter,<br />
Thank you for your time. Even though it takes more time to write in actionscript, it is the only way to build real applications like creating visual controls/components and containers at run time. I don&#8217;t find mxml useful because it is used for building static controls. Most of the examples I found online and books are using mxml which is unfair. I need to improve my skill set on Flex. Anyone can drag and drop controls in Flex, and mxml is generated by default. Therefore, I need some examples in actionscript to improve my skills. I appreciated your time and examples on your site.</p>
<p>Sincerely,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/comment-page-1/#comment-3145</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Thu, 24 Apr 2008 14:27:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-3145</guid>
		<description>&lt;a href=&quot;http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12260&quot; rel=&quot;nofollow&quot;&gt;Ozgur&lt;/a&gt;,

No good reason, apart from it takes more time to write each example twice. :)
I updated the entry above and added a hybrid MXML+ActionScript version, is that what you were looking for, or did you want 100% ActionScript?

Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12260" rel="nofollow">Ozgur</a>,</p>
<p>No good reason, apart from it takes more time to write each example twice. :)<br />
I updated the entry above and added a hybrid MXML+ActionScript version, is that what you were looking for, or did you want 100% ActionScript?</p>
<p>Peter</p>
]]></content:encoded>
	</item>
</channel>
</rss>

