// imports the StyleFormat class
import com.flashloaded.ui.graphic.StyleFormat;
// creates a new style format to act as the default format for the tree
defaultFormat = new StyleFormat("defaultFormat");
// makes the text white using Tahoma
defaultFormat.textFormat = new TextFormat("Tahoma", 11, 0xFFFFFF);
// font is embedded and exported from the library
defaultFormat.embedFonts = true;
// new StyleManager is created and passed a style format to apply to all components
var styleManager:StyleManager = new com.flashloaded.ui.managers.StyleManager(defaultFormat);
defaultFormat = new StyleFormat("defaultFormat");
defaultFormat.textFormat = new TextFormat("Tahoma", 11, 0xFFFFFF);
defaultFormat.embedFonts = true;
defaultFormat.face = 0x000000;
defaultFormat.lineColor = 0x999999;
defaultFormat.icon = 0xFFFFFF;
defaultFormat = new StyleFormat("defaultFormat");
defaultFormat.textFormat = new TextFormat("Tahoma", 11, 0xFFFFFF);
defaultFormat.embedFonts = true;
defaultFormat.face = 0x000000;
defaultFormat.lineColor = 0x999999;
defaultFormat.icon = 0xFFFFFF;
defaultFormat.border = 0x666666;
defaultFormat.shadow = 0x970198;
defaultFormat.highlight = 0xFF99FF;
defaultFormat.selected = 0xFF99FF;
defaultFormat = new StyleFormat("defaultFormat");
defaultFormat.textFormat = new TextFormat("Tahoma", 11, 0xFFFFFF);
defaultFormat.highlightTextFormat = new TextFormat("Tahoma", 11, 0xFFFFAA);
defaultFormat.selectedTextFormat = new TextFormat("Tahoma", 11, 0x000000);
defaultFormat.embedFonts = true;
defaultFormat.face = 0x000000;
defaultFormat.lineColor = 0x999999;
defaultFormat.icon = 0xFFFFFF;
defaultFormat.border = 0x666666;
defaultFormat.shadow = 0x970198;
defaultFormat.highlight = 0xFF99FF;
defaultFormat.selected = 0xFF99FF;
defaultFormat.background = 0xFFFFFF;
defaultFormat.selectedIcon = 0x000000;
defaultFormat = new StyleFormat("defaultFormat");
defaultFormat.textFormat = new TextFormat("Tahoma", 11, 0xFFFFFF);
defaultFormat.highlightTextFormat = new TextFormat("Tahoma", 11, 0xFFFFAA);
defaultFormat.selectedTextFormat = new TextFormat("Tahoma", 11, 0x000000);
defaultFormat.embedFonts = true;
defaultFormat.face = 0x000000;
defaultFormat.lineColor = 0x999999;
defaultFormat.icon = 0xFFFFFF;
defaultFormat.border = 0x666666;
defaultFormat.shadow = 0x970198;
defaultFormat.highlight = 0xFF99FF;
defaultFormat.selected = 0xFF99FF;
defaultFormat.background = 0xFFFFFF;
defaultFormat.highlightIcon = 0x000000;
defaultFormat.selectedIcon = 0x000000;
defaultFormat.scrollwell = 0x454545;
defaultFormat.lineWidth = 3;
| Property: | Applies to: |
| face | up state of buttons and scrollers, scrollpane back |
| background | down state of buttons |
| border | one pixel border around components |
| highlight | one pixel along the top and left side of components |
| shadow | one pixel along the bottom and right side of components |
| selected | rollover state of buttons and selected row of tree |
| icon | scrollbar button icon |
| selectedIcon | over state of scrollbar button icon |
| highlightIcon | rollover state of scrollbar button icon |
| disabledIcon | disabled state of scrollbar button icon |
| disabledFace | disabled state of buttons |
| scrollwell | scrollbar scrollwell |
| lineColor | connector lines in tree |
| lineWidth | thickness of connector lines in tree |
| textFormat | text in tree |
| selectedTextFormat | text in tree when selected |
| highlightTextFormat | text in tree on rollover |
| disabledTextFormat | text in tree when disabled |
| embedFonts | all text formats for style format |