<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flex Examples &#187; FxVScrollBar</title>
	<atom:link href="http://blog.flexexamples.com/category/spark/fxvscrollbar/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting the value on the FxHScrollBar control in Flex Gumbo</title>
		<link>http://blog.flexexamples.com/2009/03/01/setting-the-value-on-the-fxhscrollbar-control-in-flex-gumbo/</link>
		<comments>http://blog.flexexamples.com/2009/03/01/setting-the-value-on-the-fxhscrollbar-control-in-flex-gumbo/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 07:59:28 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta]]></category>
		<category><![CDATA[FxHScrollBar]]></category>
		<category><![CDATA[FxVScrollBar]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[maximum]]></category>
		<category><![CDATA[minimum]]></category>
		<category><![CDATA[value]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2009/03/01/setting-the-value-on-the-fxhscrollbar-control-in-flex-gumbo/</guid>
		<description><![CDATA[<p>The following example shows how you can set the minimum, maximum, and current value on a Flex Gumbo FxHScrollBar control by setting the minimum, maximum, and value properties.</p> <p>Full code after the jump.</p> <p></p> <p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set the minimum, maximum, and current value on a Flex Gumbo FxHScrollBar control by setting the <code>minimum</code>, <code>maximum</code>, and <code>value</code> properties.</p>
<p>Full code after the jump.</p>
<p><span id="more-986"></span></p>
<p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex Builder 3. For more information on downloading and installing the Gumbo SDK into Flex Builder 3, see <a href="http://blog.flexexamples.com/2008/08/02/using-the-beta-gumbo-sdk-in-flex-builder-3/">&#8220;Using the beta Gumbo SDK in Flex Builder 3&#8243;</a>.</p>
<p class="download"><a href="">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2009/03/01/setting-the-value-on-the-fxhscrollbar-control-in-flex-gumbo/ --&gt;
&lt;Application name="FxHScrollBar_value_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;ApplicationControlBar dock="true"&gt;
        &lt;Form styleName="plain"&gt;
            &lt;FormItem label="value:" direction="horizontal"&gt;
                &lt;FxHSlider id="slider"
                        minimum="0"
                        maximum="100"
                        value="76"
                        liveDragging="true" /&gt;
                &lt;Label text="{hScrollBar.value}" /&gt;
            &lt;/FormItem&gt;
        &lt;/Form&gt;
    &lt;/ApplicationControlBar&gt;

    &lt;FxHScrollBar id="hScrollBar"
            minimum="0"
            maximum="100"
            value="{slider.value}"
            width="100" /&gt;

&lt;/Application&gt;
</pre>
<p>You can also set the <code>value</code> property using ActionScript, as seen in the following example:</p>
<p class="download"><a href="">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2009/03/01/setting-the-value-on-the-fxhscrollbar-control-in-flex-gumbo/ --&gt;
&lt;Application name="FxHScrollBar_value_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;Script&gt;
        &lt;![CDATA[
            import mx.events.SliderEvent;

            private function slider_change(evt:Event):void {
                hScrollBar.value = evt.currentTarget.value;
            }
        ]]&gt;
    &lt;/Script&gt;

    &lt;ApplicationControlBar dock="true"&gt;
        &lt;Form styleName="plain"&gt;
            &lt;FormItem label="value:" direction="horizontal"&gt;
                &lt;FxHSlider id="slider"
                        minimum="0"
                        maximum="100"
                        liveDragging="true"
                        change="slider_change(event);" /&gt;
                &lt;Label text="{hScrollBar.value}" /&gt;
            &lt;/FormItem&gt;
        &lt;/Form&gt;
    &lt;/ApplicationControlBar&gt;

    &lt;FxHScrollBar id="hScrollBar"
            minimum="0"
            maximum="100"
            width="100" /&gt;

&lt;/Application&gt;
</pre>
<p class="alert">This entry is based on a beta version of the Flex Gumbo SDK and therefore is very likely to change as development of the Flex SDK continues. The API can (and will) change causing examples to possibly not compile in newer versions of the Flex Gumbo SDK.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting the value on the FxHScrollBar control in Flex Gumbo on FlexExamples.com',url: 'http://blog.flexexamples.com/2009/03/01/setting-the-value-on-the-fxhscrollbar-control-in-flex-gumbo/',contentID: 'post-986',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'Gumbo,maximum,minimum,value',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2009/03/01/setting-the-value-on-the-fxhscrollbar-control-in-flex-gumbo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing the increment and decrement buttons on a FxVScrollBar control in Flex Gumbo</title>
		<link>http://blog.flexexamples.com/2009/02/26/removing-the-increment-and-decrement-buttons-on-a-fxvscrollbar-control-in-flex-gumbo/</link>
		<comments>http://blog.flexexamples.com/2009/02/26/removing-the-increment-and-decrement-buttons-on-a-fxvscrollbar-control-in-flex-gumbo/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 08:44:21 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta]]></category>
		<category><![CDATA[FxTextArea]]></category>
		<category><![CDATA[FxVScrollBar]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[skinClass]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2009/02/26/removing-the-increment-and-decrement-buttons-on-a-fxvscrollbar-control-in-flex-gumbo/</guid>
		<description><![CDATA[<p>The following example shows how you can remove the increment and decrement buttons on a Flex Gumbo FxVScrollBar control by creating a custom skin and setting the skinClass style.</p> <p>Full code after the jump.</p> <p></p> <p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can remove the increment and decrement buttons on a Flex Gumbo FxVScrollBar control by creating a custom skin and setting the <code>skinClass</code> style.</p>
<p>Full code after the jump.</p>
<p><span id="more-981"></span></p>
<p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex Builder 3. For more information on downloading and installing the Gumbo SDK into Flex Builder 3, see <a href="http://blog.flexexamples.com/2008/08/02/using-the-beta-gumbo-sdk-in-flex-builder-3/">&#8220;Using the beta Gumbo SDK in Flex Builder 3&#8243;</a>.</p>
<p class="download"><a href="">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2009/02/26/removing-the-increment-and-decrement-buttons-on-a-fxvscrollbar-control-in-flex-gumbo/ --&gt;
&lt;FxApplication name="FxVScrollBar_skinClass_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        backgroundColor="white"&gt;

    &lt;Style&gt;
        FxTextArea FxVScrollBar {
            skinClass: ClassReference("MyVScrollBarSkin");
        }
    &lt;/Style&gt;

    &lt;VGroup horizontalCenter="0" verticalCenter="0"&gt;
        &lt;FxTextArea id="textArea"
                verticalScrollPolicy="on"
                editable="false"&gt;
            &lt;content&gt;
                &lt;String source="lipsum.html" /&gt;
            &lt;/content&gt;
        &lt;/FxTextArea&gt;

        &lt;FxVScrollBar id="vsb"
                minimum="0"
                maximum="1000" /&gt;
    &lt;/VGroup&gt;

&lt;/FxApplication&gt;
</pre>
<p>And the custom FxVScrollBar skin, MyVScrollBarSkin.mxml, is as follows:</p>
<p class="download"><a href="">View MyVScrollBarSkin.mxml</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2009/02/26/removing-the-increment-and-decrement-buttons-on-a-fxvscrollbar-control-in-flex-gumbo/ --&gt;
&lt;SparkSkin xmlns="http://ns.adobe.com/mxml/2009"
      minWidth="15" minHeight="35"
      alpha.disabled="0.5"&gt;

    &lt;states&gt;
        &lt;State name="normal" /&gt;
        &lt;State name="disabled" /&gt;
    &lt;/states&gt;

    &lt;Metadata&gt;
        [HostComponent("mx.components.FxVScrollBar")]
    &lt;/Metadata&gt;

    &lt;Script&gt;
        static private const exclusions:Array = ["track", "thumb"];
        override public function get colorizeExclusions():Array {return exclusions;}
    &lt;/Script&gt;

    &lt;FxButton id="track" top="0" bottom="0" height="54"
              focusEnabled="false"
              skinClass="mx.skins.spark.FxVScrollBarTrackSkin" /&gt;

    &lt;FxButton id="thumb"
              focusEnabled="false"
              skinClass="mx.skins.spark.FxVScrollBarThumbSkin" /&gt;

&lt;/SparkSkin&gt;
</pre>
<p class="alert">This entry is based on a beta version of the Flex Gumbo SDK and therefore is very likely to change as development of the Flex SDK continues. The API can (and will) change causing examples to possibly not compile in newer versions of the Flex Gumbo SDK.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Removing the increment and decrement buttons on a FxVScrollBar control in Flex Gumbo on FlexExamples.com',url: 'http://blog.flexexamples.com/2009/02/26/removing-the-increment-and-decrement-buttons-on-a-fxvscrollbar-control-in-flex-gumbo/',contentID: 'post-981',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'Gumbo,skinClass',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2009/02/26/removing-the-increment-and-decrement-buttons-on-a-fxvscrollbar-control-in-flex-gumbo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Determining the current scroll position on an FxTextArea control in Flex Gumbo</title>
		<link>http://blog.flexexamples.com/2008/12/09/determining-the-current-scroll-position-on-an-fxtextarea-control-in-flex-gumbo/</link>
		<comments>http://blog.flexexamples.com/2008/12/09/determining-the-current-scroll-position-on-an-fxtextarea-control-in-flex-gumbo/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 07:04:10 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta]]></category>
		<category><![CDATA[FxScroller]]></category>
		<category><![CDATA[FxTextArea]]></category>
		<category><![CDATA[FxVScrollBar]]></category>
		<category><![CDATA[Gumbo]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/12/09/determining-the-current-scroll-position-on-an-fxtextarea-control-in-flex-gumbo/</guid>
		<description><![CDATA[<p>The following example shows how you can get a Flex Gumbo FxTextArea control&#8217;s current vertical scroll position and maximum scroll position by accessing the FxTextArea control&#8217;s internal FxScroller instance&#8217;s vertical scroll bar.</p> <p>Full code after the jump.</p> <p></p> <p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can get a Flex Gumbo FxTextArea control&#8217;s current vertical scroll position and maximum scroll position by accessing the FxTextArea control&#8217;s internal FxScroller instance&#8217;s vertical scroll bar.</p>
<p>Full code after the jump.</p>
<p><span id="more-895"></span></p>
<p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex Builder 3. For more information on downloading and installing the Gumbo SDK into Flex Builder 3, see <a href="http://blog.flexexamples.com/2008/08/02/using-the-beta-gumbo-sdk-in-flex-builder-3/">&#8220;Using the beta Gumbo SDK in Flex Builder 3&#8243;</a>.</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/FxTextArea_scroller_test/bin/srcview/source/main_4308.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/12/09/determining-the-current-scroll-position-on-an-fxtextarea-control-in-flex-gumbo/ --&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="information"><a href="http://blog.flexexamples.com/wp-content/uploads/FxTextArea_scroller_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/FxTextArea_scroller_test/bin/main_4308.html" width="100%" height="400"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Determining the current scroll position on an FxTextArea control in Flex Gumbo on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/12/09/determining-the-current-scroll-position-on-an-fxtextarea-control-in-flex-gumbo/',contentID: 'post-895',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'Gumbo',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/12/09/determining-the-current-scroll-position-on-an-fxtextarea-control-in-flex-gumbo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

