<?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: Looping over paragraphs in the FxTextArea control in Flex Gumbo</title>
	<atom:link href="http://blog.flexexamples.com/2008/12/06/looping-over-paragraphs-in-the-fxtextarea-control-in-flex-gumbo/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/12/06/looping-over-paragraphs-in-the-fxtextarea-control-in-flex-gumbo/</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: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/12/06/looping-over-paragraphs-in-the-fxtextarea-control-in-flex-gumbo/comment-page-1/#comment-4032</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Tue, 09 Dec 2008 23:25:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/12/06/looping-over-paragraphs-in-the-fxtextarea-control-in-flex-gumbo/#comment-4032</guid>
		<description>Steve G,

I&#039;m not sure if this is the best way of doing it, but it seems to work. I don&#039;t have the MAX Preview build installed, but I&#039;m using Flex Builder 3 w/ SDK build 4.0.0.4250:
&lt;pre class=&quot;code&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;Application name=&quot;FxTextArea_scroller_test&quot;
        xmlns=&quot;http://ns.adobe.com/mxml/2009&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;Script&gt;
        &lt;![CDATA[
            import mx.components.FxVScrollBar;

            private function init():void {
                var vsb:FxVScrollBar = textArea.scroller.verticalScrollBar;
                var min:Number = vsb.minimum;
                var val:Number = vsb.value;
                var max:Number = vsb.maximum;
                lbl1.text = min.toString();
                lbl2.text = val.toString();
                lbl3.text = max.toString();
                progressBar.setProgress(val, max);
            }
        ]]&gt;
    &lt;/Script&gt;

    &lt;ApplicationControlBar dock=&quot;true&quot;&gt;
        &lt;Form styleName=&quot;plain&quot;&gt;
            &lt;FormItem label=&quot;minimum:&quot;&gt;
                &lt;Label id=&quot;lbl1&quot; /&gt;
            &lt;/FormItem&gt;
            &lt;FormItem label=&quot;value:&quot;&gt;
                &lt;Label id=&quot;lbl2&quot; /&gt;
            &lt;/FormItem&gt;
            &lt;FormItem label=&quot;maximum:&quot;&gt;
                &lt;Label id=&quot;lbl3&quot; /&gt;
            &lt;/FormItem&gt;
            &lt;FormItem&gt;
                &lt;ProgressBar id=&quot;progressBar&quot;
                        mode=&quot;manual&quot;
                        label=&quot;%1 / %2 (%3%%)&quot; /&gt;
            &lt;/FormItem&gt;
        &lt;/Form&gt;
    &lt;/ApplicationControlBar&gt;

    &lt;FxTextArea id=&quot;textArea&quot;
            width=&quot;100%&quot;
            height=&quot;100%&quot;
            enterFrame=&quot;init();&quot;&gt;
        &lt;content&gt;
            &lt;String source=&quot;data/lorem.html&quot; /&gt;
        &lt;/content&gt;
    &lt;/FxTextArea&gt;

&lt;/Application&gt;
&lt;/pre&gt;

&lt;p class=&quot;new&quot;&gt;I posted this as a new example, &lt;a href=&quot;http://blog.flexexamples.com/2008/12/09/determining-the-current-scroll-position-on-an-fxtextarea-control-in-flex-gumbo/&quot; rel=&quot;nofollow&quot;&gt;&quot;Determining the current scroll position on an FxTextArea control in Flex Gumbo&quot;&lt;/a&gt;.&lt;/p&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Steve G,</p>
<p>I&#8217;m not sure if this is the best way of doing it, but it seems to work. I don&#8217;t have the MAX Preview build installed, but I&#8217;m using Flex Builder 3 w/ SDK build 4.0.0.4250:</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;Application name="FxTextArea_scroller_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;Script&gt;
        &lt;![CDATA[
            import mx.components.FxVScrollBar;

            private function init():void {
                var vsb:FxVScrollBar = textArea.scroller.verticalScrollBar;
                var min:Number = vsb.minimum;
                var val:Number = vsb.value;
                var max:Number = vsb.maximum;
                lbl1.text = min.toString();
                lbl2.text = val.toString();
                lbl3.text = max.toString();
                progressBar.setProgress(val, max);
            }
        ]]&gt;
    &lt;/Script&gt;

    &lt;ApplicationControlBar dock="true"&gt;
        &lt;Form styleName="plain"&gt;
            &lt;FormItem label="minimum:"&gt;
                &lt;Label id="lbl1" /&gt;
            &lt;/FormItem&gt;
            &lt;FormItem label="value:"&gt;
                &lt;Label id="lbl2" /&gt;
            &lt;/FormItem&gt;
            &lt;FormItem label="maximum:"&gt;
                &lt;Label id="lbl3" /&gt;
            &lt;/FormItem&gt;
            &lt;FormItem&gt;
                &lt;ProgressBar id="progressBar"
                        mode="manual"
                        label="%1 / %2 (%3%%)" /&gt;
            &lt;/FormItem&gt;
        &lt;/Form&gt;
    &lt;/ApplicationControlBar&gt;

    &lt;FxTextArea id="textArea"
            width="100%"
            height="100%"
            enterFrame="init();"&gt;
        &lt;content&gt;
            &lt;String source="data/lorem.html" /&gt;
        &lt;/content&gt;
    &lt;/FxTextArea&gt;

&lt;/Application&gt;
</pre>
<p class="new">I posted this as a new example, <a href="http://blog.flexexamples.com/2008/12/09/determining-the-current-scroll-position-on-an-fxtextarea-control-in-flex-gumbo/" rel="nofollow">&#8220;Determining the current scroll position on an FxTextArea control in Flex Gumbo&#8221;</a>.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve G</title>
		<link>http://blog.flexexamples.com/2008/12/06/looping-over-paragraphs-in-the-fxtextarea-control-in-flex-gumbo/comment-page-1/#comment-4033</link>
		<dc:creator>Steve G</dc:creator>
		<pubDate>Tue, 09 Dec 2008 17:18:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/12/06/looping-over-paragraphs-in-the-fxtextarea-control-in-flex-gumbo/#comment-4033</guid>
		<description>How in the world do you programmaticly scroll the FxTextArea control?  I cannot find the verticalScrollPosition anywhere in FxTextArea.  I am using Flex Gumbo MAX 2008 Preview build 4.0.0.215018.</description>
		<content:encoded><![CDATA[<p>How in the world do you programmaticly scroll the FxTextArea control?  I cannot find the verticalScrollPosition anywhere in FxTextArea.  I am using Flex Gumbo MAX 2008 Preview build 4.0.0.215018.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

