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 8037845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:02:49+00:00 2026-06-05T03:02:49+00:00

I have a VGRoup which automatically gets a scrollbar if the content gets too

  • 0

I have a VGRoup which automatically gets a scrollbar if the content gets too long.

I would like to skin the scrollbar (make it wider). how can i do that?

<s:Panel title="Replay" width="95%" height="860" top="920" horizontalCenter="0">
    <s:VGroup id="vgroup" left="10" right="10" top="10" bottom="10">
        <s:List id="list" height="100%" width="100%" itemRenderer="ListRenderer" />         
    </s:VGroup>
</s:Panel>
  • 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-06-05T03:02:50+00:00Added an answer on June 5, 2026 at 3:02 am

    First you should know that it’s not the VGroup that gets a scrollbar, it’s the List. Groups are layout components with no visual elements whatsoever. (Also the VGroup is redundant in the code you show, but I guess you may have removed some irrelevant code for the purpose of this question.)

    Now for the skinning: you do this by creating your own version of the Spark VScrollBarSkin. If you use FlashBuilder, right-click on your project (or a package where you want to create the skin); click ‘New > MXML Skin’; in the wizard fill in spark.components.VScrollBar as host component and have it create a copy of spark.skins.spark.VScrollBarSkin.

    enter image description here

    In the class you’ve just created, you see four Buttons, each with their own skin. One is the ‘scroll up’ button, another is the ‘scroll down’ button, the third is the track (the background) which is also clickable, and the last is the thumb that you can drag.

    You can now create a custom skin for each of these Buttons just as you did with VScrollBarskin, but since you only want to adjust the width, that may not be necessary. It may suffice to just set an explicit width on each of these Buttons.

    Now to apply your skin instead of the default one just put this in your stylesheet:

    @namespace s "library://ns.adobe.com/flex/spark";
    
    s|VScrollBar {
        skinClass: ClassReference("my.skins.VScrollBarSkin")
    }
    

    Or use a more specific selector if you want it applied only to List scrollbars for instance:

    s|List s|VScrollBar { ... }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have code like the following: <s:VGroup gap=10 id=group height=100%> <s:Label text=This is page
have a small javscript that users can include into their sites like so: <script
have anyone can tell me what syntax error on this actionscript (actionscript3.0)? var rotY:
have been trying couple of hours now to make my iphone app universal. The
Suppose you have a view, which contains three control A, B and C .
I have a group of spark label components within a VGroup. Is there a
have a php code like this,going to convert it in to C#. function isValid($n){
Have one Doubt In MVC Architecture we can able to pass data from Controller
Have advancements in CPU design like dynamic instruction scheduling narrowed the performance gap between
I have some layout with image, I want that layout fit in screen automatically

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.