Follow me Stepbystep Flex tutorial

Source: Internet
Author: User
Tags config

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.