Flex Examples

Flex Examples: Smoothing the background fill on an MX Panel container in Flex 3

The following example shows how you can apply smoothing to a background image fill on an MX Panel container in Flex 3 by extending the BitmapAsset class, setting the Boolean smoothing property, and setting the backgroundImage and backgroundSize styles.

<?xml version="1.0" encoding="utf-8"?>

<

Flex Examples: Checking that an item is selected in the Spark DropDownList control in Flex 4

The following example shows how you can check whether the user has selected an item in the Spark DropDownList control in Flex 4 by setting the Boolean requiresSelection property to true or using a NumberValidator to check the DropDownList control’s selectedIndex property is greater than -1.

<?xml version="1.0" encoding="utf-8"?>
http://blog.flexexamples.com/2010/03/12/checking-that-an-item-is-selecte... -->

Flex Examples: Creating a justified multiline Spark Button control in Flex 4

The following example shows how you can create a multiline, justified label on Spark Button control in Flex 4 by creating a custom skin and setting the textAlign style and removing the maxDisplayedLines property.

<?xml version="1.0" encoding="utf-8"?>
http://blog.flexexamples.com/2010/03/09/creating-a-justified-multiline-s... -->

Flex Examples: Creating a drop down DataGrid control in Flex 4

The following example shows how you can create a drop down MX DataGrid control in Flex 4 using the Spark PopUpAnchor control in Flex 4.

<?xml version="1.0" encoding="utf-8"?>
http://blog.flexexamples.com/2010/03/09/creating-a-drop-down-datagrid-co... -->

[...]

Flex Examples: Setting the slide duration on a Spark HScrollBar control in Flex 4

In a previous example, “Setting the slide duration on a Spark HSlider control in Flex 4″, we saw how you could set the slide duration on a Spark HSlider control in Flex 4 by setting the slideDuration style.
The following example shows how you can set the slide duration on a Spark HScrollBar control in Flex [...]

Flex Examples: Removing the sort arrow skin from an MX DataGrid control in Flex

In a previous example, “Changing the default sort arrow skin on a Flex DataGrid control”, we saw how you could change the sort arrow skin on a DataGrid control in Flex by setting the sortArrowSkin style.
The following example shows how you can remove the sort arrow skin from an MX DataGrid control in Flex by [...]

Flex Examples: Preventing the selected item highlighting in the Spark List control in Flex 4

In a previous example, “Preventing item selection in the Spark List control in Flex 4″, we saw how you can prevent item selection in the Spark List control in Flex 4 by listening for the changing event and calling the preventDefault() method on the IndexChangeEvent event object instance.
The following example shows how you can keep [...]

Flex Examples: Preventing item selection in the Spark List control in Flex 4

The following example shows how you can prevent item selection in the Spark List control in Flex 4 by listening for the changing event and calling the preventDefault() method on the IndexChangeEvent event object instance.

<?xml version="1.0" encoding="utf-8"?>
http://blog.flexexamples.com/2010/02/25/preventing-item-selection-in-the... -->

Flex Examples: Using embedded fonts with the MX AdvancedDataGrid control in Flex 4

The following example shows how you can use an embedded font with the MX AdvancedDataGrid control in Flex 4 by setting the embedAsCFF and fontFamily styles.

<?xml version="1.0" encoding="utf-8"?>
http://blog.flexexamples.com/2010/02/24/using-embedded-fonts-with-the-mx... -->

 
[...]

Flex Examples: Setting the font weight on the MX Legend control in Flex 4

In a previous example, “Setting the font weight on a charting Legend control in Flex”, we saw how you could set the font weight of a Flex Charting Legend control by setting the fontWeight style on the LegendItem CSS selector.
The following example shows how you can set the font weight of an MX Legend control [...]

Syndicate content