<?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: Setting a custom horizontal scroll bar skin on a Spark List control in Flex 4</title>
	<atom:link href="http://blog.flexexamples.com/2009/11/04/setting-a-custom-horizontal-scroll-bar-skin-on-a-spark-list-control-in-flex-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2009/11/04/setting-a-custom-horizontal-scroll-bar-skin-on-a-spark-list-control-in-flex-4/</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: skawian</title>
		<link>http://blog.flexexamples.com/2009/11/04/setting-a-custom-horizontal-scroll-bar-skin-on-a-spark-list-control-in-flex-4/comment-page-1/#comment-9408</link>
		<dc:creator>skawian</dc:creator>
		<pubDate>Thu, 21 Jul 2011 14:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2166#comment-9408</guid>
		<description>use horizontalScrollPolicy=&quot;off&quot;</description>
		<content:encoded><![CDATA[<p>use horizontalScrollPolicy=&#8221;off&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jelbee</title>
		<link>http://blog.flexexamples.com/2009/11/04/setting-a-custom-horizontal-scroll-bar-skin-on-a-spark-list-control-in-flex-4/comment-page-1/#comment-9149</link>
		<dc:creator>Jelbee</dc:creator>
		<pubDate>Mon, 18 Apr 2011 20:50:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2166#comment-9149</guid>
		<description>how to remove the horizontal bar? I wanted to show only the vertical scrollbar.</description>
		<content:encoded><![CDATA[<p>how to remove the horizontal bar? I wanted to show only the vertical scrollbar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2009/11/04/setting-a-custom-horizontal-scroll-bar-skin-on-a-spark-list-control-in-flex-4/comment-page-1/#comment-6295</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Sun, 08 Nov 2009 20:17:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2166#comment-6295</guid>
		<description>Or, if you&#039;re doing this in MXML, I&#039;d create a custom Scroller skin and just set the &lt;code&gt;skinClass&lt;/code&gt; style on the VScrollBar and HScrollBar controls:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:SparkSkin name=&quot;CustomScrollerSkin&quot;
        xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
        xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;&gt;

    &lt;fx:Metadata&gt;
        &lt;![CDATA[
            [HostComponent(&quot;spark.components.Scroller&quot;)]
        ]]&gt;
    &lt;/fx:Metadata&gt;

    &lt;fx:Script&gt;
        &lt;![CDATA[
            override public function beginHighlightBitmapCapture():void {
                super.beginHighlightBitmapCapture();
                graphics.beginFill(0);
                graphics.drawRect(0, 0, width, height);
                graphics.endFill();
            }

            override public function endHighlightBitmapCapture():void {
                super.endHighlightBitmapCapture();
                graphics.clear();
            }
        ]]&gt;
    &lt;/fx:Script&gt;

    &lt;!--- Determines whether the vertical ScrollBar is visible in the ScrollerSkin. --&gt;
    &lt;s:VScrollBar id=&quot;verticalScrollBar&quot;
            skinClass=&quot;skins.CustomVScrollBarSkin&quot;
            visible=&quot;false&quot; /&gt;

    &lt;!--- Determines whether the horizontal ScrollBar is visible in the ScrollerSkin. --&gt;
    &lt;s:HScrollBar id=&quot;horizontalScrollBar&quot;
            skinClass=&quot;skins.CustomHScrollBarSkin&quot;
            visible=&quot;false&quot; /&gt;

&lt;/s:SparkSkin&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Or, if you&#8217;re doing this in MXML, I&#8217;d create a custom Scroller skin and just set the <code>skinClass</code> style on the VScrollBar and HScrollBar controls:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:SparkSkin</span> name=<span style="color: #ff0000;">&quot;CustomScrollerSkin&quot;</span></span>
<span style="color: #000000;">        xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span>
<span style="color: #000000;">        xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Metadata</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#91;</span>HostComponent<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;spark.components.Scroller&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span></span>
<span style="color: #000000;">        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Metadata</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #000000;">            override public function beginHighlightBitmapCapture<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                super.beginHighlightBitmapCapture<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                graphics.beginFill<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                graphics.drawRect<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, width, height<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                graphics.endFill<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
&nbsp;
<span style="color: #000000;">            override public function endHighlightBitmapCapture<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                super.endHighlightBitmapCapture<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                graphics.clear<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!--- Determines whether the vertical ScrollBar is visible in the ScrollerSkin. --&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:VScrollBar</span> id=<span style="color: #ff0000;">&quot;verticalScrollBar&quot;</span></span>
<span style="color: #000000;">            skinClass=<span style="color: #ff0000;">&quot;skins.CustomVScrollBarSkin&quot;</span></span>
<span style="color: #000000;">            visible=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!--- Determines whether the horizontal ScrollBar is visible in the ScrollerSkin. --&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:HScrollBar</span> id=<span style="color: #ff0000;">&quot;horizontalScrollBar&quot;</span></span>
<span style="color: #000000;">            skinClass=<span style="color: #ff0000;">&quot;skins.CustomHScrollBarSkin&quot;</span></span>
<span style="color: #000000;">            visible=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:SparkSkin</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2009/11/04/setting-a-custom-horizontal-scroll-bar-skin-on-a-spark-list-control-in-flex-4/comment-page-1/#comment-6294</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Sun, 08 Nov 2009 19:50:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2166#comment-6294</guid>
		<description>@vlad,

To set the skin class using ActionScript, try this:
&lt;pre lang=&quot;actionscript3&quot;&gt;
list.scroller.horizontalScrollBar.setStyle(&quot;skinClass&quot;, TrackThumbOnlyHSBSkin);
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>@vlad,</p>
<p>To set the skin class using ActionScript, try this:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;">list<span style="color: #000066; font-weight: bold;">.</span>scroller<span style="color: #000066; font-weight: bold;">.</span>horizontalScrollBar<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">setStyle</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;skinClass&quot;</span><span style="color: #000066; font-weight: bold;">,</span> TrackThumbOnlyHSBSkin<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vlad</title>
		<link>http://blog.flexexamples.com/2009/11/04/setting-a-custom-horizontal-scroll-bar-skin-on-a-spark-list-control-in-flex-4/comment-page-1/#comment-6293</link>
		<dc:creator>vlad</dc:creator>
		<pubDate>Sun, 08 Nov 2009 18:50:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2166#comment-6293</guid>
		<description>Hello! Could you help me.
I&#039;m trying ty make a skin for Scroller.
And I don&#039;t understand how correctly link from Scroller skin to VScrollBar skin or HScrollBar skin?
I don&#039;t understand how to use &quot;verticalScrollBar&quot; property of scroller or it skin.
There are no good examples or articles for that.
I found how to style VScrollBar with CSS ans ClassReferance and how to make custom skin with Catalist for VScrollBar.
But how exactly link VScrollBar skin to Scroller skin?</description>
		<content:encoded><![CDATA[<p>Hello! Could you help me.<br />
I&#8217;m trying ty make a skin for Scroller.<br />
And I don&#8217;t understand how correctly link from Scroller skin to VScrollBar skin or HScrollBar skin?<br />
I don&#8217;t understand how to use &#8220;verticalScrollBar&#8221; property of scroller or it skin.<br />
There are no good examples or articles for that.<br />
I found how to style VScrollBar with CSS ans ClassReferance and how to make custom skin with Catalist for VScrollBar.<br />
But how exactly link VScrollBar skin to Scroller skin?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2009/11/04/setting-a-custom-horizontal-scroll-bar-skin-on-a-spark-list-control-in-flex-4/comment-page-1/#comment-6255</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 05 Nov 2009 15:22:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2166#comment-6255</guid>
		<description>Clarified and expanded at &lt;a href=&quot;http://blog.flexexamples.com/2009/11/05/applying-styles-to-specific-spark-list-controls-in-flex-4/&quot; rel=&quot;nofollow&quot;&gt;&quot;Applying styles to specific Spark List controls in Flex 4&quot;&lt;/a&gt;.

Peter</description>
		<content:encoded><![CDATA[<p>Clarified and expanded at <a href="http://blog.flexexamples.com/2009/11/05/applying-styles-to-specific-spark-list-controls-in-flex-4/" rel="nofollow">&#8220;Applying styles to specific Spark List controls in Flex 4&#8243;</a>.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2009/11/04/setting-a-custom-horizontal-scroll-bar-skin-on-a-spark-list-control-in-flex-4/comment-page-1/#comment-6254</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 05 Nov 2009 15:08:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2166#comment-6254</guid>
		<description>@Steve Lombardi,

Good question. There are a couple of ways to selectively apply styles based on the &lt;code&gt;styleName&lt;/code&gt; property or the component&#039;s &lt;code&gt;id&lt;/code&gt; property.

(1) Apply the styles to ALL instances of s&#124;List:
&lt;pre lang=&quot;css&quot;&gt;
s&#124;List s&#124;HScrollBar {
    skinClass: ClassReference(&quot;skins.TrackThumbOnlyHSBSkin&quot;);
}
&lt;/pre&gt;

(2) Apply the styles to all instances of s&#124;List with a &lt;code&gt;styleName&lt;/code&gt; property of &quot;listHSBStyles&quot;:
&lt;pre lang=&quot;css&quot;&gt;
s&#124;List.listHSBStyles s&#124;HScrollBar {
    skinClass: ClassReference(&quot;skins.TrackThumbOnlyHSBSkin&quot;);
}
&lt;/pre&gt;

(3) Apply the styles to all instances of s&#124;List with an &lt;code&gt;id&lt;/code&gt; property of &quot;list1&quot;:
&lt;pre lang=&quot;css&quot;&gt;
s&#124;List#list1 s&#124;HScrollBar {
    skinClass: ClassReference(&quot;skins.TrackThumbOnlyHSBSkin&quot;);
}
&lt;/pre&gt;

So, depending on whether &quot;choiceLists&quot; is a &lt;code&gt;styleName&lt;/code&gt; property (you&#039;d want to use solution #2) or an &lt;code&gt;id&lt;/code&gt; property (you&#039;d want to use solution #3), you have a couple options.

Peter</description>
		<content:encoded><![CDATA[<p>@Steve Lombardi,</p>
<p>Good question. There are a couple of ways to selectively apply styles based on the <code>styleName</code> property or the component&#8217;s <code>id</code> property.</p>
<p>(1) Apply the styles to ALL instances of s|List:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">s|List s|HScrollBar <span style="color: #00AA00;">&#123;</span>
    skinClass<span style="color: #00AA00;">:</span> ClassReference<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;skins.TrackThumbOnlyHSBSkin&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>(2) Apply the styles to all instances of s|List with a <code>styleName</code> property of &#8220;listHSBStyles&#8221;:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">s|List<span style="color: #6666ff;">.listHSBStyles</span> s|HScrollBar <span style="color: #00AA00;">&#123;</span>
    skinClass<span style="color: #00AA00;">:</span> ClassReference<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;skins.TrackThumbOnlyHSBSkin&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>(3) Apply the styles to all instances of s|List with an <code>id</code> property of &#8220;list1&#8243;:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">s|List<span style="color: #cc00cc;">#list1</span> s|HScrollBar <span style="color: #00AA00;">&#123;</span>
    skinClass<span style="color: #00AA00;">:</span> ClassReference<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;skins.TrackThumbOnlyHSBSkin&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>So, depending on whether &#8220;choiceLists&#8221; is a <code>styleName</code> property (you&#8217;d want to use solution #2) or an <code>id</code> property (you&#8217;d want to use solution #3), you have a couple options.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Lombardi</title>
		<link>http://blog.flexexamples.com/2009/11/04/setting-a-custom-horizontal-scroll-bar-skin-on-a-spark-list-control-in-flex-4/comment-page-1/#comment-6252</link>
		<dc:creator>Steve Lombardi</dc:creator>
		<pubDate>Thu, 05 Nov 2009 14:27:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2166#comment-6252</guid>
		<description>How can I target a specific list with that CSS instead of all lists?

I tried 2. I can&#039;t target a specific List:
.choiceList s&#124;HScrollBar {
            skinClass: ClassReference(&quot;skins.FoodHScrollbar&quot;);
        }
Does not work</description>
		<content:encoded><![CDATA[<p>How can I target a specific list with that CSS instead of all lists?</p>
<p>I tried 2. I can&#8217;t target a specific List:<br />
.choiceList s|HScrollBar {<br />
            skinClass: ClassReference(&#8220;skins.FoodHScrollbar&#8221;);<br />
        }<br />
Does not work</p>
]]></content:encoded>
	</item>
</channel>
</rss>

