Themes

Themes are collections of styles and skins. The default theme for Flash MX 2004 and Flash MX Professional 2004 is called Halo (HaloTheme.fla). The Halo theme was developed to let you provide a responsive, expressive experience for your users. Flash MX 2004 and Flash MX Professional 2004 include one additional theme called Sample (SampleTheme.fla). The Sample theme allows you to experiment with the full set of styles available to v2 components. (The Halo theme uses only a subset of the available styles.) The theme files are located in the following folders:

You can create new themes and apply them to an application to change the look and feel of all the components. For example, you could create a two-dimensional theme and a three-dimensional theme.

The v2 components use skins (graphic or movie clip symbols) to display their visual appearances. The .as file that defines each component contains code that loads specific skins for the component. The ScrollBar, for instance, is programmed to load the symbol with the linkage identifier ScrollDownArrowDown as the skin for the pressed (down) state of its down arrow. You can easily create a new theme by making a copy of the Halo or Sample theme and altering the graphics in the skins.

A theme can also contain a new set of styles. You must write ActionScript code to create a global style declaration and any additional style declarations. For more information, see Using styles to customize component color and text.