Gumbo (Flex 4) Skin with Transitions

In my last post I created a skin example based on the new skinning approach coming with Flex 4. It was a simple button skin that had two states, multiple icons, filters and used FXG for some of the graphics. I thought I’d expand on that example to include transitions.

Over the weekend I noticed a new build of the Flex SDK popped up with some new samples, like a CircularScrollBar, and some Gumbo Effects (amongst other things). I decided to make a Button skin with transitions that included a Resize and Fade Effect. Here’s what the 2 states look like:

Flex 4 Transition Skin

The transition between the up and over states resizes the skin vertically then fades in the Sun/Cloud icon and the static temperature text. When you roll off the Button the transition plays in reverse. The transitions are pretty easy to implement if you’re familiar with working with Transitions and Effects currently in Flex. However, it will be nice to have Thermo to see exactly what your transitions are doing in real-time, especially for making more advanced composite effects.

During the process of putting this example together I experimented with using the includeIn property to only show content in certain states. Eventually I took it out, but that’s another option for showing/hiding content rather just messing with the alpha and scale. Plus, you’ll be sure that content will only show up in a designated state and not mess with the layout.

If you’re interested in what I did to get this sample to work you can download the source here.

8 Responses to “Gumbo (Flex 4) Skin with Transitions”

  1. Ryan Stewart - Rich Internet Application Mountaineer » Blog Archive » Couple of Good Skinning With Flex 4 Blog Posts Says:

    [...] The first one is kind of an intro and compares and contrasts the Flex 4 versus Flex 3 model. The second one uses a new Gumbo build and uses some of the transitions. Both are well worth checking [...]

  2. Gareth Edwards Says:

    Any idea on if Adobe will be providing a Flex 4 Combobox? if not? how might you do something like this? Any idea on how will Flex 4 will deal with States that overlap other content?

    Cheers
    Gareth.

  3. juan Says:

    @Gareth - All I’ve seen so far is the use of MX/Halo ComboBoxes in the samples. I suppose you could make a skin that mimicked the same “feel” of a ComboBox, but I would think that would fall under more the new way components will be composed (which I haven’t looked at yet).

    As far as States that overlap other content, I think there was some mention in the documentation of an attempt to smooth that out. Read more here: http://opensource.adobe.com/wiki/display/flexsdk/Enhanced+States+Syntax

  4. Ed Says:

    Thanks for the nice example, just wondering if u can set the “heightFrom” value to “{status.height}” so it won’t jump too quickly when u rollover/rollout too quick?

    Most of my projects need very smooth button transition which is very hard to do with current Flex framework, hopefully Flex 4 will have it all:)

    Cheers
    Ed

  5. Comunidade Portuguesa de Rich Internet Applications» Blog Archive » Compilar aplicações Flex 4 no Flex Builder 3 Says:

    [...] mínima para 10.0.0 ( Flex Compiler > HTML Wrapper ) Para testar basta importar o exemplo do ScaleNine e compilar. This entry was written by joao.fernandes and posted on July 22, 2008 at 1:39 pm and [...]

  6. Flex Monkey Patches » Blog Archive » Rubbernecker’s Review - Week 6 Says:

    [...] Gumbo (Flex 4) Skin with Transitions (from ScaleNine Blog) [...]

  7. RichApps » Blog Archive » FXG kicks ass! Says:

    [...] Gumbo (Flex 4) Skin with Transitions [...]

  8. Basic Skinning in Flex 4 « My experiments in Flex Says:

    [...] in the skin file. Juan at ScaleNine has made a cool example with transitions in skins. Check it out here. I’ll keep posting more stuff as I try new stuff « 3D effects in Flash Player 10 [...]

Leave a Reply