<?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: Disabling live scrolling on a Flex TextArea control</title>
	<link>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Tue, 06 Jan 2009 09:17:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Tobias</title>
		<link>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/#comment-15019</link>
		<author>Tobias</author>
		<pubDate>Fri, 29 Aug 2008 10:15:25 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/#comment-15019</guid>
		<description>Holy shit! I got it.
For debugging purposes (with Firefox 3 Console does not show trace prints) I use Safari as Webbrowser. - After days of testing I tried to scroll the TextArea within Firefox: I works. Safari just ignores the Scrollwheel of my mouse so I thought I need to set some attribute...
Sorry for going onto your nerves.
-) Tobias</description>
		<content:encoded><![CDATA[<p>Holy shit! I got it.<br />
For debugging purposes (with Firefox 3 Console does not show trace prints) I use Safari as Webbrowser. - After days of testing I tried to scroll the TextArea within Firefox: I works. Safari just ignores the Scrollwheel of my mouse so I thought I need to set some attribute&#8230;<br />
Sorry for going onto your nerves.<br />
-) Tobias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobias</title>
		<link>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/#comment-14987</link>
		<author>Tobias</author>
		<pubDate>Wed, 27 Aug 2008 23:12:33 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/#comment-14987</guid>
		<description>I tried to decompile the swf.. did not work ;{</description>
		<content:encoded><![CDATA[<p>I tried to decompile the swf.. did not work ;{</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobias</title>
		<link>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/#comment-14986</link>
		<author>Tobias</author>
		<pubDate>Wed, 27 Aug 2008 22:16:09 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/#comment-14986</guid>
		<description>He Peter. Thanks a lot - I like the example you give.
But what I mean is another thing: When I move my mouse cursor over the textarea I like the text to scroll if there is more content then the textarea can show at once. I found an example here:
http://livedocs.adobe.com/flex/3/html/help.html?content=basic_as_1.html
Last swf for example Unluckely there is no attribute or sourcecode available.
Do you know how?
Tobias</description>
		<content:encoded><![CDATA[<p>He Peter. Thanks a lot - I like the example you give.<br />
But what I mean is another thing: When I move my mouse cursor over the textarea I like the text to scroll if there is more content then the textarea can show at once. I found an example here:<br />
<a href="http://livedocs.adobe.com/flex/3/html/help.html?content=basic_as_1.html" rel="nofollow">http://livedocs.adobe.com/flex/3/html/help.html?content=basic_as_1.html</a><br />
Last swf for example Unluckely there is no attribute or sourcecode available.<br />
Do you know how?<br />
Tobias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/#comment-14931</link>
		<author>peterd</author>
		<pubDate>Tue, 26 Aug 2008 04:43:36 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/#comment-14931</guid>
		<description>Tobias,

You can scroll the Flex TextArea control vertically using the &lt;code&gt;verticalScrollPosition&lt;/code&gt; and &lt;code&gt;maxVerticalScrollPosition&lt;/code&gt; properties, as seen in the following example:

&lt;pre class="code"&gt;
&#60;?xml version="1.0" encoding="utf-8"?&#62;
&#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        creationComplete="init();"&#62;

    &#60;mx:Script&#62;
        &#60;![CDATA[
            private function init():void {
                callLater(setMaxVScrollPos);
            }

            private function setMaxVScrollPos():void {
                slider.maximum = textArea.maxVerticalScrollPosition;
            }
        ]]&#62;
    &#60;/mx:Script&#62;

    &#60;mx:String id="lorem" source="lorem.html" /&#62;

    &#60;mx:ApplicationControlBar dock="true"&#62;
        &#60;mx:Form styleName="plain"&#62;
            &#60;mx:FormItem label="verticalScrollPosition:"&#62;
                &#60;mx:HSlider id="slider"
                        minimum="0"
                        snapInterval="1"
                        liveDragging="true" /&#62;
            &#60;/mx:FormItem&#62;
        &#60;/mx:Form&#62;
    &#60;/mx:ApplicationControlBar&#62;

    &#60;mx:TextArea id="textArea"
            text="{lorem}"
            verticalScrollPosition="{slider.value}"
            verticalScrollPolicy="on"
            width="100%"
            height="100%"
            resize="init();" /&#62;

&#60;/mx:Application&#62;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Tobias,</p>
<p>You can scroll the Flex TextArea control vertically using the <code>verticalScrollPosition</code> and <code>maxVerticalScrollPosition</code> properties, as seen in the following example:</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"
        creationComplete="init();"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function init():void {
                callLater(setMaxVScrollPos);
            }

            private function setMaxVScrollPos():void {
                slider.maximum = textArea.maxVerticalScrollPosition;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

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

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Form styleName="plain"&gt;
            &lt;mx:FormItem label="verticalScrollPosition:"&gt;
                &lt;mx:HSlider id="slider"
                        minimum="0"
                        snapInterval="1"
                        liveDragging="true" /&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:TextArea id="textArea"
            text="{lorem}"
            verticalScrollPosition="{slider.value}"
            verticalScrollPolicy="on"
            width="100%"
            height="100%"
            resize="init();" /&gt;

&lt;/mx:Application&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobias</title>
		<link>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/#comment-14930</link>
		<author>Tobias</author>
		<pubDate>Mon, 25 Aug 2008 22:40:03 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/#comment-14930</guid>
		<description>Can you tell me how I can set up scrolling for a TextArea via Actionscript? It seems as if it is disabled by default.</description>
		<content:encoded><![CDATA[<p>Can you tell me how I can set up scrolling for a TextArea via Actionscript? It seems as if it is disabled by default.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobias</title>
		<link>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/#comment-14929</link>
		<author>Tobias</author>
		<pubDate>Mon, 25 Aug 2008 22:37:01 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/#comment-14929</guid>
		<description>Ah! Thank you.</description>
		<content:encoded><![CDATA[<p>Ah! Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/#comment-14926</link>
		<author>peterd</author>
		<pubDate>Mon, 25 Aug 2008 17:33:18 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/#comment-14926</guid>
		<description>Tobias,

In the example above, select the checkbox and try scrolling the TextArea control's vertical scrollbar thumb. As you click and drag the scrollbar thumb, you should see the text scroll line by line.
Now, deselect the checkbox and try again. Now the text doesn't scroll as you drag the scrollbar, but will scroll to the correct position when you release the scrollbar thumb.

Peter</description>
		<content:encoded><![CDATA[<p>Tobias,</p>
<p>In the example above, select the checkbox and try scrolling the TextArea control&#8217;s vertical scrollbar thumb. As you click and drag the scrollbar thumb, you should see the text scroll line by line.<br />
Now, deselect the checkbox and try again. Now the text doesn&#8217;t scroll as you drag the scrollbar, but will scroll to the correct position when you release the scrollbar thumb.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobias</title>
		<link>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/#comment-14925</link>
		<author>Tobias</author>
		<pubDate>Mon, 25 Aug 2008 16:11:18 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/06/disabling-live-scrolling-on-a-flex-textarea-control/#comment-14925</guid>
		<description>Hi. I can not experience any differnce when enabling or disabling the checkbox. Could you please describe the functionality of liveScrolling?! - Further I myself cannot manage to set up scrolling behaviour on a TextArea component - what is the secret trick? Thx, Tobias</description>
		<content:encoded><![CDATA[<p>Hi. I can not experience any differnce when enabling or disabling the checkbox. Could you please describe the functionality of liveScrolling?! - Further I myself cannot manage to set up scrolling behaviour on a TextArea component - what is the secret trick? Thx, Tobias</p>
]]></content:encoded>
	</item>
</channel>
</rss>
