How to remove White Box between the scrollers using action script

Posted by druva | Flex, as3, utils | Saturday 20 February 2010 2:49 am
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
    <mx:Script>
        <![CDATA[
            override public function validateDisplayList():void {
                super.validateDisplayList();
                for (var i:Number=0; i<rawChildren.numChildren; i++) {
                    if ((rawChildren.getChildAt( i ) as DisplayObject).name == "whiteBox" ) {
                        ((rawChildren.getChildAt( i ) as DisplayObject) as Shape).graphics.clear();
                    }
                }
            }
        ]]>
    </mx:Script>
    <mx:Text text="1221sdfsdfssdfs&#xa;sdfsdf&#xa;sdfs&#xa;fs&#xa;fsd&#xa;fsd&#xa;fsd&#xa;fsd&#xa;fsd&#xa;fsd&#xa;fsd&#xa;fs&#xa;df&#xa;sdf&#xa;sdfdfs d&#xa;|sdfsdfsdfsdfsdf sdf sdf sd fsdfsdfsdsdfsfsdfsfdsfdffsdf sdf sdf sdf sdfsdsdfsfsdf&#xa;sdfsdfsdfsdfs&#xa;sdf&#xa;sdfsd&#xa;fsd&#xa;f&#xa;sdfsd&#xa;f&#xa;sfd fsdfdsfsdfsdffsd sdf sdffs dfdf"/>
</mx:Canvas>
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*">
    <local:myCanvas>

    </local:myCanvas>
</mx:Application>