Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 406705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:31:21+00:00 2026-05-12T17:31:21+00:00

I am having some issues when trying to skin the scrollbar on a horizontalList

  • 0

I am having some issues when trying to skin the scrollbar on a horizontalList with Degrafa. The scrollbar doesn’t show up at all. I checked to see if the scrollbar is supposed to show up without the skinning, and it does. Are there any gotchas with doing this?
Here is some code:

This is where I define the HorizontalList where I want a skinned scrollbar

<mx:HorizontalList horizontalScrollBarStyleName="thumbnailScrollbar"/>

Here is where I define the ClassReference for the skins (null for the arrows so they dont show up).

.thumbnailScrollbar
{
    up-arrow-skin:      ClassReference(null);
    down-arrow-skin:    ClassReference(null);
    trackSkin:      ClassReference("ScrollBarTrackSkin");
    thumbSkin:      ClassReference("ScrollBarThumbSkin");
}

ScrollBarTrackSkin:

<?xml version="1.0" encoding="utf-8"?>
<GraphicBorderSkin  xmlns:mx="http://www.adobe.com/2006/mxml" 
                xmlns="http://www.degrafa.com/2007">
    <fills>
        <SolidFill id="upFill" color="#FFFFFF" alpha="0.8"/>
    </fills>

    <geometry>
        <RoundedRectangle id="track" x="-8" cornerRadius="16" width="{this.skinWidth}" height="{this.skinHeight}" fill="{upFill}"/>
    </geometry>

</GraphicBorderSkin>

ScrollBarThumbSkin:

<?xml version="1.0" encoding="utf-8"?>
<GraphicBorderSkin  xmlns:mx="http://www.adobe.com/2006/mxml" 
                       xmlns="http://www.degrafa.com/2007">

    <fills>
        <SolidFill id="background" color="#333333" alpha=".8"/>
    </fills>

    <geometry>
        <RoundedRectangle id="thumb" cornerRadius="16" width="{this.skinWidth}" height="{this.skinHeight}" fill="{background}"/>
    </geometry>
</GraphicBorderSkin>

I am populating the HorizontalList with more items than are viewable, and like I said before the scrollbar shows up when I remove the skinning.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T17:31:21+00:00Added an answer on May 12, 2026 at 5:31 pm

    Where is your skinHeight and skinWidth being set? Typically, degrafa examples do something like this in the skin to update the height/width:

    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void{
                    super.updateDisplayList(unscaledWidth, unscaledHeight);
                    awidth = unscaledWidth;
                    aheight = unscaledHeight;
    
                }
    

    In addition to that, I needed to do this:

    override public function get measuredWidth():Number {return 16; }
    override public function get measuredHeight():Number {return 10;}
    

    in my scrollbar skins to get the height and width I wanted. (same for both V & H as they do rotation internally). There was some hacky code in the Flex scrollbar skins and my bars weren’t showing up either.

    But I’m not currently using degrafa for my skins, so there may be another issue. I don’t have any examples in front of me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All, I'm trying to get my positioning set up and I'm having some issues
I'm having some major issues trying to grab all the data I need for
I'm having some issues trying to extract all the email headers in python. I
I'm having some issues trying to Compile a DLL, but I just can't see
I am having some serious issues trying to tweak my layout in a table.
I am currently learning C, and am having some issues with trying to make
I am trying to get php's namespace technique down but having some issues here:
I'm trying to get started with twitter4r but I'm having some issues: Why I
I'm trying to convert some VB.net code into C# and having issues trying to
I'm having some issues with a report I'm trying to create for TFS work

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.