Monthly Archives: January 2010

Creating three related Spark DropDownList controls in Flex 4

In a previous example, “Creating two related ComboBoxes”, we saw how you could create two or three related MX ComboBox controls in Flex 3 by binding to the previous ComboBox control’s selected item.

The following example shows how you can create three related Spark DropDownList controls in Flex 4 by using databinding and XML.

Continue reading Creating three related Spark DropDownList controls in Flex 4

Setting the width of the dropdown menu on a Spark DropDownList control in Flex 4

In a previous example, “Setting the width of the dropdown menu on a ComboBox control in Flex”, we saw how you could set the width of the dropdown menu on a Flex MX ComboBox control by setting the dropdownWidth property.

The following example shows how you can change the width of the Spark DropDownList control’s pop up menu so the pop up menu width matches the contents rather than the DropDownMenu button control’s width by setting the Boolean popUpWidthMatchesAnchorWidth property.

Continue reading Setting the width of the dropdown menu on a Spark DropDownList control in Flex 4

Creating a custom label function on a Spark ButtonBar control in Flex 4

In a previous example, “Creating a custom label function on a Flex ButtonBar control”, we saw how you could use a custom label function to create button labels on an MX ButtonBar control in Flex by setting the labelFunction property.

The following example shows how you can set a custom label function to create button labels on a Spark ButtonBar control in Flex 4 by setting the labelFunction property.

Full code after the jump.

Continue reading Creating a custom label function on a Spark ButtonBar control in Flex 4

Displaying a semi-transparent FLV file in an MX VideoDisplay control in Flex 4

In a previous example, “Displaying a semi-transparent FLV file in an MX VideoDisplay control in Flex”, we saw how you could display an FLV file with alpha channel transparency in an MX VideoDisplay control in Flex 3 by setting the backgroundAlpha style to 0.

The following example shows how you can display an FLV file with alpha channel transparency in an MX VideoDisplay control in Flex 4 by setting the contentBackgroundAlpha style to 0.

Full code after the jump.

Continue reading Displaying a semi-transparent FLV file in an MX VideoDisplay control in Flex 4