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.

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

Any pointers towards how I can set the size of the thumb in Flash will be appreciated.
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:and as you can see there isn’t any flag to skip setting of
thumb.heightin else block.The possible solution can be to extends the
ScrollPaneand override theconfigUImethod – and add your custom CustomScrollPane (that extends ScrollBar and overrides theupdateThumbmethod) 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.