Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6848975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:56:02+00:00 2026-05-27T00:56:02+00:00

I am flex developer, and from last few months, i am continuously working on

  • 0

I am flex developer, and from last few months, i am continuously working on projects, so i was not getting enough time to migrate to flex4

I am well comfortable in flex3, as i m doing the whole flex projects designing by myself, normally i prefer graphical skinning. i am using adobe flash for this.

But now i want to move to flex4 environment, but facing the same problem, how do i do skinning for the buttons and other components?

Do Flex4 allow same old graphical skinning?

i did googled for this , but couldn’t extract n e thing useful?
and also please tell help me with some gud links, so that i will be able to start my new project development in flex4 now,

I did studied flex4 tutorials on adobe etc, but they support some sort of making some skinnig classes, and do everything thru coding, i guess thats real hard?

i feel like, making up, over, down and disabled skin of a button in flash, and then importing them to flex, that was much easier.

Can n e eone also tell me, why there are few halo components still there in flex4, whose spark replacements are not avaialble?

is flex4.5 version includes all spark components which were halo in flex3

Well, lots of questions this time 🙂

Thanks everyone in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:56:03+00:00Added an answer on May 27, 2026 at 12:56 am

    Flex4 has improved skinning and states.

    It is easy to auto generate skin classes.

    Specify a skinClass:

    <s:Button skinClass="ExampleSkin" />
    

    You can [command/control]+[space-bar] inside the skinClass property and choose “Create skin…” option from the context menu to generate an appropriate skin class.

    Properties may be set by state, for example:

    <!-- states -->
    <s:states>
        <s:State name="up" />
        <s:State name="over" />
        <s:State name="down" />
        <s:State name="disabled" />
    </s:states>
    
            <s:GradientEntry color="0x000000" 
                             color.down="0xFFFFFF"
    

    For the Spark Button GradientEntry above, color is black except for the down state which is white.

    Auto generated skin class for a Button would be:

    <?xml version="1.0" encoding="utf-8"?>
    
    <!--
    
        ADOBE SYSTEMS INCORPORATED
        Copyright 2008 Adobe Systems Incorporated
        All Rights Reserved.
    
        NOTICE: Adobe permits you to use, modify, and distribute this file
        in accordance with the terms of the license agreement accompanying it.
    
    -->
    
    <!--- The default skin class for the Spark Button component.  
    
           @see spark.components.Button
    
          @langversion 3.0
          @playerversion Flash 10
          @playerversion AIR 1.5
          @productversion Flex 4
    -->
    <s:SparkButtonSkin xmlns:fx="http://ns.adobe.com/mxml/2009" 
                 xmlns:s="library://ns.adobe.com/flex/spark" 
                 xmlns:fb="http://ns.adobe.com/flashbuilder/2009"
                 minWidth="21" minHeight="21" 
                 alpha.disabled="0.5">
    
        <fx:Metadata>
            <![CDATA[ 
            /** 
             * @copy spark.skins.spark.ApplicationSkin#hostComponent
             */
            [HostComponent("spark.components.Button")]
            ]]>
        </fx:Metadata>
    
        <fx:Script fb:purpose="styling">
            <![CDATA[         
                import spark.components.Group;
                /* Define the skin elements that should not be colorized. 
                For button, the graphics are colorized but the label is not. */
                static private const exclusions:Array = ["labelDisplay"];
    
                /** 
                 * @private
                 */     
                override public function get colorizeExclusions():Array {return exclusions;}
    
                /**
                 * @private
                 */
                override protected function initializationComplete():void
                {
                    useChromeColor = true;
                    super.initializationComplete();
                }  
    
                /**
                 *  @private
                 */
                override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void
                {
                    var cr:Number = getStyle("cornerRadius");
    
                    if (cornerRadius != cr)
                    {
                        cornerRadius = cr;
                        shadow.radiusX = cornerRadius;
                        fill.radiusX = cornerRadius;
                        lowlight.radiusX = cornerRadius;
                        highlight.radiusX = cornerRadius;
                        border.radiusX = cornerRadius;
                    }
    
                    if (highlightStroke) highlightStroke.radiusX = cornerRadius;
                    if (hldownstroke1) hldownstroke1.radiusX = cornerRadius;
                    if (hldownstroke2) hldownstroke2.radiusX = cornerRadius;
    
                    super.updateDisplayList(unscaledWidth, unscaledHeight);
                }
    
                private var cornerRadius:Number = 2;
    
            ]]>        
        </fx:Script>
    
        <!-- states -->
        <s:states>
            <s:State name="up" />
            <s:State name="over" />
            <s:State name="down" />
            <s:State name="disabled" />
        </s:states>
    
        <!-- layer 1: shadow -->
        <!--- @private -->
        <s:Rect id="shadow" left="-1" right="-1" top="-1" bottom="-1" radiusX="2">
            <s:fill>
                <s:LinearGradient rotation="90">
                    <s:GradientEntry color="0x000000" 
                                     color.down="0xFFFFFF"
                                     alpha="0.01"
                                     alpha.down="0" />
                    <s:GradientEntry color="0x000000" 
                                     color.down="0xFFFFFF" 
                                     alpha="0.07"
                                     alpha.down="0.5" />
                </s:LinearGradient>
            </s:fill>
        </s:Rect>
    
        <!-- layer 2: fill -->
        <!--- @private -->
        <s:Rect id="fill" left="1" right="1" top="1" bottom="1" radiusX="2">
            <s:fill>
                <s:LinearGradient rotation="90">
                    <s:GradientEntry color="0xFFFFFF" 
                                     color.over="0xBBBDBD" 
                                     color.down="0xAAAAAA" 
                                     alpha="0.85" />
                    <s:GradientEntry color="0xD8D8D8" 
                                     color.over="0x9FA0A1" 
                                     color.down="0x929496" 
                                     alpha="0.85" />
                </s:LinearGradient>
            </s:fill>
        </s:Rect>
    
        <!-- layer 3: fill lowlight -->
        <!--- @private -->
        <s:Rect id="lowlight" left="1" right="1" top="1" bottom="1" radiusX="2">
            <s:fill>
                <s:LinearGradient rotation="270">
                    <s:GradientEntry color="0x000000" ratio="0.0" alpha="0.0627" />
                    <s:GradientEntry color="0x000000" ratio="0.48" alpha="0.0099" />
                    <s:GradientEntry color="0x000000" ratio="0.48001" alpha="0" />
                </s:LinearGradient>
            </s:fill>
        </s:Rect>
    
        <!-- layer 4: fill highlight -->
        <!--- @private -->
        <s:Rect id="highlight" left="1" right="1" top="1" bottom="1" radiusX="2">
            <s:fill>
                <s:LinearGradient rotation="90">
                    <s:GradientEntry color="0xFFFFFF"
                                     ratio="0.0"
                                     alpha="0.33" 
                                     alpha.over="0.22" 
                                     alpha.down="0.12"/>
                    <s:GradientEntry color="0xFFFFFF"
                                     ratio="0.48"
                                     alpha="0.33"
                                     alpha.over="0.22"
                                     alpha.down="0.12" />
                    <s:GradientEntry color="0xFFFFFF"
                                     ratio="0.48001"
                                     alpha="0" />
                </s:LinearGradient>
            </s:fill>
        </s:Rect>
    
        <!-- layer 5: highlight stroke (all states except down) -->
        <!--- @private -->
        <s:Rect id="highlightStroke" left="1" right="1" top="1" bottom="1" radiusX="2" excludeFrom="down">
            <s:stroke>
                <s:LinearGradientStroke rotation="90" weight="1">
                    <s:GradientEntry color="0xFFFFFF" alpha.over="0.22" />
                    <s:GradientEntry color="0xD8D8D8" alpha.over="0.22" />
                </s:LinearGradientStroke>
            </s:stroke>
        </s:Rect>
    
        <!-- layer 6: highlight stroke (down state only) -->
        <!--- @private -->
        <s:Rect id="hldownstroke1" left="1" right="1" top="1" bottom="1" radiusX="2" includeIn="down">
            <s:stroke>
                <s:LinearGradientStroke rotation="90" weight="1">
                    <s:GradientEntry color="0x000000" alpha="0.25" ratio="0.0" />
                    <s:GradientEntry color="0x000000" alpha="0.25" ratio="0.001" />
                    <s:GradientEntry color="0x000000" alpha="0.07" ratio="0.0011" />
                    <s:GradientEntry color="0x000000" alpha="0.07" ratio="0.965" />
                    <s:GradientEntry color="0x000000" alpha="0.00" ratio="0.9651" />
                </s:LinearGradientStroke>
            </s:stroke>
        </s:Rect>
        <!--- @private -->
        <s:Rect id="hldownstroke2" left="2" right="2" top="2" bottom="2" radiusX="2" includeIn="down">
            <s:stroke>
                <s:LinearGradientStroke rotation="90" weight="1">
                    <s:GradientEntry color="0x000000" alpha="0.09" ratio="0.0" />
                    <s:GradientEntry color="0x000000" alpha="0.00" ratio="0.0001" />
                </s:LinearGradientStroke>
            </s:stroke>
        </s:Rect>
    
        <!-- layer 7: border - put on top of the fill so it doesn't disappear when scale is less than 1 -->
        <!--- @private -->
        <s:Rect id="border" left="0" right="0" top="0" bottom="0" width="69" height="20" radiusX="2">
            <s:stroke>
                <s:LinearGradientStroke rotation="90" weight="1">
                    <s:GradientEntry color="0x000000" 
                                     alpha="0.5625"
                                     alpha.down="0.6375" />
                    <s:GradientEntry color="0x000000" 
                                     alpha="0.75" 
                                     alpha.down="0.85" />
                </s:LinearGradientStroke>
            </s:stroke>
        </s:Rect>
    
        <!-- layer 8: text -->
        <!--- @copy spark.components.supportClasses.ButtonBase#labelDisplay  -->
        <s:Label id="labelDisplay"
                 textAlign="center"
                 maxDisplayedLines="1"
                 horizontalCenter="0" verticalCenter="1" verticalAlign="middle"
                 left="10" right="10" top="2" bottom="2">
        </s:Label>
    
    </s:SparkButtonSkin>
    

    Flash Catalyst provides design authoring, or Flash Professional has the Flex Component Kit.

    You could create a skin that loads embedded Flash library symbols by state.

    MX architecture is generally deprecated by Spark. Use Spark components if available.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well from last few months, i am looking for one solution, but couldn't find
I downloaded the swc file from here: http://developer.yahoo.com/maps/flash/flexGettingStarted.html And put it in my flex
I've been experimenting with Adobe Flex recently. Being a long-time server-side web app developer,
So here I am, first time windows developer (done java swing, iphone, flash/flex) and
I am a flex developer, and most of the time I am dealing with
I'm working on my first C#/WPF project (I'm a Java/Web developer with some Flex/As
I am a Flex developer and never used CGI before. I wanted to create
I'm currently a .NET developer, but I'm starting to work with Flex a little
I'm building from scratch a web application that is not trivial (have some algorithms
I'm working on a pretty big application for Flex/Air. We are using GraniteDS and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.