[AS3] Skinning Flash Components
Posted by SikoTiko in Problems, tags: actionscript 3, flash component, skinningYou can easily skin a Flash component using only ActionScript using component’s method setStyle() providing as parameters:
- the name of the style and
- your class that you want to use as the skin.
Here is the list of the styles that can be used for skinning a component:
ComboBox component styles
cellRenderer
disabledSkin
downArrowDisabledSkin
downArrowDownSkin
downArrowOverSkin
downArrowUpSkin
downSkin
thumbArrowUpSkin
thumbDisabledSkin
thumbDownSkin
thumbIcon
thumbOverSkin
trackDisabledSkin
trackDownSkin
trackUpSkin
upArrowDisabledSkin
upArrowOverSkin
upArrowUpSkin
upSkin
Information for any of the above styles of the ComboBox component can be found in the Flash Help for the ComboBox class.
The code for skinning is:
myComboBox.setStyle("upArrowUpSkin", CustomUpArrowUpSkin);
Where CustomUpArowUpSkin is the class of your custom upArrow skin for Up state of the up arrow button.
to be continued…



Entries (RSS)
How do you skin Slider component and make the thumb bigger?.
Thanks
Hi, Tamer! Thanks for your comment! I made some experiments with the Slider component and found the way to change the thumb properties like width, height, etc. Check out the second part of the series about skinning flash components at [AS3] Skinning Flash Components – Part II.