The following example shows how you can set a bitmap background fill on a Spark List control in Flex Gumbo by creating a custom Spark List skin with a BitmapFill object and setting a custom item renderer.
Full code after the jump.
Continue reading ‘Creating a bitmap background fill on a Spark List control in Flex Gumbo’
The following example shows how you can set a linear gradient background fill on a Spark List control in Flex Gumbo by setting the skinClass style and setting the background fill to a LinearGradient object.
Full code after the jump.
Continue reading ‘Creating a linear gradient background fill on a Spark List control in Flex Gumbo’
The following example shows how you can create a gradient roll over color on a Spark List control in Flex Gumbo by creating a custom item renderer setting the itemRenderer property.
Full code after the jump.
Continue reading ‘Creating a linear gradient roll over background on a Spark List in Flex Gumbo’
The following example shows how you can loop through buttons in a Spark ButtonBar control in Flex Gumbo by setting the arrowKeysWrapFocus property.
Full code after the jump.
Continue reading ‘Looping through buttons in a Spark ButtonBar control in Flex Gumbo’
The following example shows how you can restrict which characters a user can enter into a Spark TextInput control by setting the restrict property in Flex Gumbo.
Full code after the jump.
Continue reading ‘Restricting which characters a user can type in a Spark TextInput control in Flex Gumbo’
The following example shows how you can create strikethrough text on a Spark TextInput control in Flex Gumbo by setting the lineThrough style.
Full code after the jump.
Continue reading ‘Creating strikethrough text on a Spark TextInput control in Flex Gumbo’
The following example shows how you can set the content background color on a Spark DropDownList control in Flex Gumbo by setting the contentBackgroundColor style.
Full code after the jump.
Continue reading ‘Setting a content background color on a Spark DropDownList control in Flex Gumbo’
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 from the Spark DropDownList control by creating a custom skin and setting the skinClass style.
Full code after the jump.
Continue reading ‘Removing the vertical separator from the Spark DropDownList control in Flex Gumbo’
The following example shows how you can set the base color on a Spark DropDownList control in Flex Gumbo by setting the baseColor style.
Full code after the jump.
Continue reading ‘Setting the base color on a Spark DropDownList control in Flex Gumbo’
The following example shows how you can set the pop up placement on a Flex Spark DropDownList by creating a custom skin and setting the placement property.
Full code after the jump.
Continue reading ‘Setting the pop up placement on a Spark DropDownList in Flex Gumbo’
The following example shows how you can create a Spark DropDownList with a tile layout in Flex Gumbo by setting the layout property to a TileList object.
Full code after the jump.
Continue reading ‘Creating a tile layout Spark DropDownList control in Flex Gumbo’
The following example shows how you can display images in a Spark DropDownList control in Flex Gumbo by creating a custom skin and setting the itemRenderer property.
Full code after the jump.
Continue reading ‘Displaying images in a Spark DropDownList control in Flex Gumbo’
The following example shows how you can set the drop down menu width on a Spark DropDownList control by setting the width property within a custom DropDownList skin.
Full code after the jump.
Continue reading ‘Setting the width of the pop up on a Spark DropDownList control in Flex Gumbo’
The following example shows how you can use a custom icon on the Spark DropDownList control in Flex 4 by creating a custom skin and setting the skinClass style.
Full code after the jump.
Continue reading ‘Setting a custom icon on the Spark DropDownList control in Flex 4′
The following example shows how you can prevent selection of specific items in a Flex Spark DropDownList control by listening for the selectionChanging event and calling the preventDefault() method.
Full code after the jump.
Continue reading ‘Preventing specific item selection on a Spark DropDownList control in Flex Gumbo’