Posts tagged as:

skin

In a previous example, “Creating a toggleable LinkButton control in Flex”, we saw how you could create a toggleable Flex LinkButton control by extending the mx.skins.halo.LinkButtonSkin and adding custom “selectedUpSkin”, “selectedOverSkin”, “selectedDownSkin”, and “selectedDisabledSkin” skin states.

The following example shows how you can create a toggleable MX LinkButton control in Flex 4 by creating a custom MX LinkButton skin and specifying a background fill for the selected (“selectedUp”, “selectedOver”, “selectedDown”, and “selectedDisabled”) states.

[click to continue…]

{ 7 comments }

The following example shows how you can create a simple skin-state browser in Flex 4 by calling the setCurrentState() method on an object’s skin property.

Full code after the jump.

[click to continue…]

{ 8 comments }

In a previous example, “Setting a gradient background fill on a Halo TextArea control in Flex 4″, we saw how you could create a linear gradient background on a Halo/MX TextArea control in Flex 4 by creating a custom border skin with a LinearGradient fill and setting the borderSkin style.

The following example shows how you can create a linear gradient background on a Spark TextArea control in Flex 4 by modifying the background fill in the TextArea control’s skin to a LinearGradient.

Full code after the jump.

[click to continue…]

{ 5 comments }

The following example shows how you can set the fill colors on a Halo Button control (with default Spark skin) in Flex 4 by creating a custom skin and setting the gradient colors in the fill layer:

<!-- layer 2: fill -->
<s :Rect left="1" right="1" top="1" bottom="1"
        radiusX="2" radiusY="2">
    </s><s :fill>
        </s><s :LinearGradient rotation="90">
            <s :GradientEntry color="red"
                    color.overStates="haloGreen"
                    alpha="0.85"
                    alpha.selectedOver="1" />
            <s :GradientEntry color="haloOrange"
                    color.overStates="haloBlue"
                    alpha="0.85"
                    alpha.selectedOver="1" />
        </s>

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can create a custom LinkButton skin on the Halo LinkBar control in Flex 4 by setting the linkButtonStyleName and skin styles.

Full code after the jump.

[click to continue…]

{ 0 comments }

In a previous example, “Removing the vertical separator from the ComboBox control in Flex”, we saw how you could remove the vertical separator from the Flex ComboBox control by creating a custom ComboBox skin using ActionScript.

The following example shows how you can remove the vertical separator fro a Halo ComboBox control (with default Spark skin) in Flex 4 by creating a custom skin and setting the skin style.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can set a background image fill on a Halo Button control (with default Spark skin) in Flex 4 by creating a custom Button skin and setting the skin style.

Full code after the jump.

[click to continue…]

{ 1 comment }

The following example shows how you can set an image background on a Halo ButtonBar control (with default Spark skin) in Flex 4 by setting the buttonStyleName, firstButtonStyleName, lastButtonStyleName, and skin styles.

Full code after the jump.

[click to continue…]

{ 0 comments }

Removing the vertical separator from the ComboBox control in Flex

by Peter deHaan March 23, 2009

The following example shows how you can remove the vertical separator from the Flex ComboBox control by creating a custom ComboBox skin using ActionScript.
Full code after the jump.

Read the full article →

Extending the LinkButton control in Flex

by Peter deHaan September 8, 2008

The following example shows how you can extend the Flex LinkButton control and add your own custom styles to a custom skin class.
Full code after the jump.

Read the full article →

Changing the default skins on a Button control in Flex

by Peter deHaan August 20, 2008

The following example shows how you can modify the default skins for the Flex Button control by setting the skin, upSkin, overSkin, downSkin, and disabledSkin styles.
Full code after the jump.

Read the full article →

Setting skins on the the Flex ButtonBar control

by Peter deHaan January 10, 2008

The following example shows how you can skin the ButtonBar control in Flex by setting the buttonStyleName style and setting one or more of the following skin styles: skin, upSkin, overSkin, downSkin, disabledSkin.
Full code after the jump.

Read the full article →