Monthly Archives: February 2010

Setting the content background alpha a Spark List control in Flex 4

In a previous example, “Hiding the border on a Spark List control in Flex 4”, we saw how you could toggle the border visibility on a Spark List control in Flex 4 by setting the Boolean borderVisible style.

The following example shows how you can set the content background alpha on a Spark List control in Flex 4 by setting the contentBackgroundAlpha style to a number between 0.0 and 1.0.

Continue reading Setting the content background alpha a Spark List control in Flex 4

Setting a roll over open delay on a Spark VolumeBar control in Flex 4

In a previous example, “Setting a roll over open delay on a Spark DropDownList control in Flex 4”, we saw how you could set a roll over open delay on a Spark DropDownList control in Flex 4 by extending the DropDownList control, accessing the protected DropDownController object and setting the rollOverOpenDelay property.

The following example shows how you can set the roll over open delay on a Spark VolumeBar skin part in the VideoPlayer control in Flex 4 by setting the rollOverOpenDelay style.

Continue reading Setting a roll over open delay on a Spark VolumeBar control in Flex 4

Creating a toggleable MX LinkButton control in Flex 4

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.

Continue reading Creating a toggleable MX LinkButton control in Flex 4

Changing the mouse cursor when rolling over items in an MX List control in Flex

The following example shows how you can change the mouse cursor when rolling over an item in an MX List control in Flex by listening for the itemRollOver and itemRollOut events and using the CursorManager.

Continue reading Changing the mouse cursor when rolling over items in an MX List control in Flex