Skinning the Flash 8 Components
Flash components received a major upgrade in Flash MX 2004. One of the areas that received a facelift is the skinning mechanism. Flash 8 introduces some changes to the workflow in the authoring environment and references to paths. If you have read the earlier version of this article on skinning the Flash MX 2004 component, this article will seem very familiar because I upgraded it to reflect the changes in Flash 8.
In this article, I cover skinning using the library and themes, and through code I explore skinning using the prototype method, subclassing a component class, and the
initObject method. Armed with this knowledge, you will be able to take better control of your application’s look and feel and have a good understanding of how flexible the skinning architecture is in Flash 8.
To make the most of this tutorial you need the following software and files:
Macromedia Flash 8 Basic
or Macromedia Flash Professional 8
Tutorials and sample files:
- skinning_code.zip (ZIP, 380K)
Basic knowledge of Flash components and ActionScript.
What’s Different in Flash 8?
Although the architecture and approach to skinning has not changed since Flash MX 2004, some minor changes are important to mention for those already familiar with skinning components in Flash MX 2004.
The following has changed since Flash MX 2004:
- Flash 8 introduces the new FLVPlayback components. These components do not use the Version 2.0 component architecture. Hence, the way you approach skinning them is different from the standard user interface components that come with Flash 8. They will not be covered in this article. For more details, see Dan Carr’s article, Customizing the FLVPlayback Component.
The location of some of the paths where you find FLA files and ActionScript classes provided by Macromedia has changed slightly. You can find the component FLA files now at the following locations:
- (Windows) C:Program FilesMacromediaFlash 8<LANGUAGE>ConfigurationComponentFLA
- (Macintosh) Hard Drive/Users/<USERNAME>/Library/Application Support/Macromedia/Flash 8/<LANGUAGE>/Configuration/ComponentFLA
- (Windows) C:Program FilesMacromediaFlash 8enFirst RunClasses
- (Macintosh) Hard Drive/Applications/Flash 8/First Run/Classes
- The documentation has been improved to include better coverage of the components and skinning. This helps in identifying component properties more easily than before.
The classes can be found here:
Note that the Classes folder structure has slightly changed. There still is the mx folder, which is of interest here, but you will also see FP7 and FP8 folders, which are specific to each player version that the authoring environment can target.