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…]
Tagged as:
Gumbo,
skin,
toggle
The following example shows how you can create an MXML-based icon for the Halo/MX LinkButton control in Flex 4 by creating a custom component using the <fx:Component/> tag and setting the className property.
Full code after the jump.
[click to continue…]
Tagged as:
className,
Gumbo,
icon,
States
The following example shows how you can remove the hand cursor from the a Flex LinkButton control by extending the LinkButton class, overriding the enabled setter function, and setting the useHandCursor property.
Full code after the jump.
[click to continue…]
Tagged as:
enabled,
useHandCursor
The following example shows how you can set the gap between the icon and label on a Flex LinkButton control by setting the horizontalGap style.
Full code after the jump.
[click to continue…]
Tagged as:
horizontalSpacing
The following example shows how you can create a toggleable Flex LinkButton control by extending the mx.skins.halo.LinkButtonSkin and adding custom “selectedUpSkin”, “selectedOverSkin”, “selectedDownSkin”, and “selectedDisabledSkin” skin states.
Full code after the jump.
[click to continue…]
Tagged as:
selected,
toggle