Hi 

How to change the color of the Scrollbar(I have changed its skin)  when I 
select a color from Standard ColorPicker
Note:

I know this will work if we didn't skin the Scrollbar
<mx:Script>
private function init():void  {                    
                vs.setScrollProperties(300,0,310,300);
                vs.lineScrollSize = 300;
 }
private function changed(event:ColorPickerEvent):void  {                   

                for(var i:int=0; i< vs.numChildren; i++) {
                          (vs.getChildAt(i)as 
UIComponent).setStyle('backgroundColor', cP.selectedColor);
                }
}
]]>
</mx:Script>

    
<mx:VScrollBar width="20" height="300" x="100" id="vs" />
<mx:ColorPicker change="changed(event)" id="cP" x="235" y="45" />


But how to change its color If I skin the scrollbar.

its appearing but the color gradient is different from what i selected...what 
might be the problem in this case...

Thanks...IN ADVANCE




      Add more friends to your messenger and enjoy! Go to 
http://in.messenger.yahoo.com/invite/

Reply via email to