OK, this the first in what will be an occasional series called ‘AS3 Quick answers’.
I’m currently creating a new version of my Garden Planner tool, which involves re-writiing the whole app. in AS3. In doing this I’m coming across quite few ‘how do I do that?’ moments, where things that really should be quite simple turn out to be a bit of puzzle. So when I actually work out something that intially stumped me I’ll post it here and hopefully it will help someone.
The first thing that stumped me was how to make the scrollbar wider in the default CS3/4 components. You would think this would be a simple setting, and it certainly is simple if you just want to make a vertical scrollbar taller or a horizontal one longer. But what if you want to make the vertical scrollbar a bit wider. There is no setting to do this and even customising the graphics wont work! This really is a bit of an ommision because the default scrollbars a bit thiner than a typical Windows scrollbar and so there are probably quite a few developers who would like alter its width.
So whats the answer? Just go to the man who created the components in the first place, Grant Skinner. Hidden away in an old post on his blog Grant provides an updated set of components that solves this issue. I have no idea why Adobe havent officially supported this update – they really should.
0 Responses to “AS3 Quick Answers – how do you make the scrollbar component wider”