symbolDisabledColor: true,
themeColor:true,
todayIndicatorColor: true,
shadowCapColor:true,
borderCapColor:true,
focusColor:true,
shapeColor:true
};
Register the new style name to the circle and square skins on Frame 1 of each skin movie clip, as
follows:
mx.skins.ColoredSkinElement.setColorStyle(this, "shapeColor");
The color can be changed with the new style name by setting the style on the instance, as shown
here:
shape.setStyle("shapeColor",0x00ff00);
Exporting and distributing a component
Flash MX 2004 and Flash MX Professional 2004 export components as component packages
(SWC files). Components may be distributed as SWC files or as FLA files. (See the article on
Macromedia DevNet at
creating_comps12.html
The best way to distribute a component is to export is as a SWC file, because SWC files contain
all the ActionScript, SWF files, and other optional files needed to use the component. SWC files
are also useful if you are working at the same time on a component and the application that uses
the component.
SWC files can be used to distribute components for use in Macromedia Flash MX 2004,
Macromedia Dreamweaver MX 2004, and Macromedia Director MX 2004.
Whether you're developing a component for someone else's use, or for your own, it's important to
test the SWC file as an ongoing part of component development. For example, problems can arise
in a component's SWC file that don't appear in the FLA file.
This section describes a SWC file and explains how to import and export SWC files in Flash.
Understanding SWC files
A SWC file is a zip-like file (packaged and expanded by means of the PKZIP archive format)
generated by the Flash authoring tool.
www.macromedia.com/support/flash/applications/creating_comps/
for information about distributing a component as a FLA.)
Exporting and distributing a component
953
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers