I'm in the process of creating a custom look for a Flex app and ran into
a problem while creating custom skins for scrollbars.  There is a
hard-coded shape object in the mx:Container class that creates a white
box in the bottom-right corner, between the horizontal and vertical
scroll bars.

The "whiteBox" object is declared as a private data member and
instantiated and destroyed in a private function, seemingly putting it
out of reach of my derived classes.  Fortunately, I found an easy
workaround that I post about in detail on my blog here:

http://tommyb.com/2006/11/30/flex-using-custom-scrollbar-skins-youll-run\
-into-this-problem/
<http://tommyb.com/2006/11/30/flex-using-custom-scrollbar-skins-youll-ru\
n-into-this-problem/>

The short version of it is this:  Create overridden versions of both the
createChildren and validateDisplayList functions, locate the shape by
name in the display list and delete it.  FYI for anyone else that runs
into this problem!

Reply via email to