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

  • Home
  • SEARCH
  • 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 9184763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:07:59+00:00 2026-06-17T19:07:59+00:00

I am trying to customise the built-in scrollbar component in flash. Specifically, I need

  • 0

I am trying to customise the built-in scrollbar component in flash. Specifically, I need to customise the scrollbar’s thumb to have a fixed height and width.

This is what I have right now. The thumb height adjusts itself. I need to fix the height of the thumb.

current state

What I’m trying to achieve (a fixed-height thumb):

what I'm trying to achieve

Any pointers towards how I can set the size of the thumb in Flash will be appreciated.

  • 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-17T19:08:01+00:00Added an answer on June 17, 2026 at 7:08 pm

    There isn’t easy way to do this, I mean that Flash CS6 ScrollBar doesn’t support this feature. The height of thumb updates in the protected method fl.controls.ScrollBar:

        protected function updateThumb():void {
            var per:Number = _maxScrollPosition - _minScrollPosition + _pageSize;
            if (track.height <= 12 || _maxScrollPosition <= _minScrollPosition || (per == 0 || isNaN(per))) {
                thumb.height = 12;
                thumb.visible = false;
            } else {
                thumb.height = Math.max(13,_pageSize / per * track.height);
                thumb.y = track.y+(track.height-thumb.height)*((_scrollPosition-_minScrollPosition)/(_maxScrollPosition-_minScrollPosition));
                thumb.visible = enabled;
            }
        }
    

    and as you can see there isn’t any flag to skip setting of thumb.height in else block.
    The possible solution can be to extends the ScrollPane and override the configUI method – and add your custom CustomScrollPane (that extends ScrollBar and overrides the updateThumb method) instead of created _verticalScrollBar:ScrollBar.

    Another solution can be to replace the original fl ScrollPane class with your own with the same name fl.controls.ScrollPane in the main ApplicationDomain of your swf. But to do this you will have to organize the class loading in a such way that your own class loaded before the fl ones that is you have to load all classes dynamically in external swfs.

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

Sidebar

Related Questions

I'm trying to customise my prompt in a remote PowerShell session. This all works
I have a slight problem trying to customise the look of the action bar
I'm trying to customise the sc-player-minimal.html example included with the JS custom player package.
im trying to customize this page indicator with half succes, but after many hours
I am trying to customize a script and need to get a POST value
I have the following problem. I am trying to customize default TFS build process
I'm trying to customise the output from a WordPress plugin called Showtime. Showtime contains
I am trying to customise the default query which is put in place when
I am trying to customize the installation of JasperServer. I have downloaded the source.
I have a small set of source code files for C. I'm trying to

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.