Not yet rated

Problem

Allowing user to chose look & feel increases application value and user experience. The main issue is not to blow the application size and themes development time.

Solution

Use open-source FTheme library, download free looks from the ftheme.com or create own in a few minutes.

Detailed explanation

1. Download corresponding version of library from flex theme downloads page into project libs folder

2. Add -theme+=libs/ftheme1.1sdk4. X.swc compiler option

3. Unzip testLooks.zip into bin-debug

4. Paste this into your application MXML:

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
        xmlns:s="library://ns.adobe.com/flex/spark" 
        xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns:components="com.fTheme.components.*"
        preinitialize="{new FThemeController()}">
        
        <fx:Script>
        <![CDATA[
                import com.fTheme.FThemeController;
        ]]>
        </fx:Script>
        
        <s:HGroup paddingBottom="20" paddingLeft="20" paddingRight="20" paddingTop="20" gap="10">
                
                <components:LookSelector direction="vertical"/>

                <components:Sample/>
                
        </s:HGroup>
        
</s:Application>

5. Compile and launch!

6. Before publishing or selling your application please ensure that it uses looks with appropriate licenses (some do not allow commercial use)

7. Browse Gallery for new looks


+
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Report abuse

Related recipes