March 11, 2008

UI Skins & Appearance


Customized UI Components to match site visual style


Flash uses a construct called "skins" to describe the general appearance of UI components. Developers can create and use their own or can choose to use one of the variations of the default skin known as "Halo".

In this project, I style the text that appears in all the UI components and change the Halo theme in the actions panel.

//set the halo theme to orange

_global.style.setStyle("themeColor", "haloOrange");
//set the font family to verdana
_global.style.setStyle("fontFamily", "Verdana");
//set the font size to 10
_global.style.setStyle("fontSize", "10");
//set the font color to dark gray
_global.style.setStyle("color", 0x666666);

No comments: