How to customize a theme:
1, first define a good. css file;
2, COMPC compile SWC file;
Compc-include-file name Path-o OUTPUT.SWC
such as (can include multiple files):
Compc-include-file Mycss.css C:/myfiles/themes/mycss.css
-include-file upicon.jpg c:/myfiles/themes/assets/upicon.jpg
-include-file downicon.jpg c:/myfiles/themes/assets/downicon.jpg
-include-file overicon.jpg c:/myfiles/themes/assets/overicon.jpg
-O C:/MYFILES/THEMES/MYTHEME.SWC
3, write the XML configuration file, such as:
<?xml version= "1.0"?>
<flex-config xmlns= "Http://www.adobe.com/2006/flex-config" >
<output>MyTheme.swc</output>
<include-file>
<name>mycss.css</name>
<path>c:/myfiles/themes/mycss.css</path>
</include-file>
<include-file>
<name>upIcon.jpg</name>
<path>c:/myfiles/themes/assets/upIcon.jpg</path>
</include-file>
<include-file>
<name>downIcon.jpg</name>
<path>c:/myfiles/themes/assets/downIcon.jpg</path>
</include-file>
<include-file>
<name>overIcon.jpg</name>
<path>c:/myfiles/themes/assets/overIcon.jpg</path>
</include-file>
<include-classes>
<class>MyButtonSkin</class>
<class>MyAccordionHeaderSkin</class>
<class>MyControlBarSkin</class>
</include-classes>
</flex-config>
Execute compc-load-config myconfig.xml Compile the subject file.
The above reference Flex Builder self-Help files creating a theme SWC file section.
Naturally, readers can also use tools to make beautiful themes.
Adobe Extension Manager CS4 2.0 http://www.adobe.com/cn/exchange/em_download/
Flex Skin Design Extensions & Flex Component kits for Flash CS3
https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex% 5Fskins
The simplest way, is to download the theme style has been done, the author recommended a website: http://www.scalenine.com/, readers can also own online Baidu, Google, you can find a lot.
May 4 Youth Festival, FlexUnit 4 Alpha 1.0 released, this content would have to be said later, but since the release, the author will be the latest research in the tutorial, this version of the larger low-level refactoring.
Article Source: http://wangyisong.javaeye.com/blog/380862