Posts tagged as:

Gumbo

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

by Peter deHaan February 23, 2010

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 [...]

Read the full article →

Listening for a click on the MX MenuBar control in Flex

by Peter deHaan February 19, 2010

The following example shows how you can detect a click on the MX MenuBar control in Flex by using the menuBarItems array and adding an event listener for the click event to a specific MenuBarItem.

Read the full article →

Setting a variable row height on an MX MenuBar control in Flex

by Peter deHaan February 19, 2010

The following example shows how you can set a variable row height on an MX MenuBar control in Flex by listening for the menuShow event, setting the Boolean variableRowHeight property on the MenuEvent object’s menu property, and then calling the invalidateSize() method.

Read the full article →

Setting a text indent on the Spark List control in Flex 4

by Peter deHaan February 19, 2010

The following example shows how you can set the text indent on a Spark List control in Flex 4 by creating a custom item renderer using the RichText control and setting the textIndent style.

Read the full article →

Programmatically scrolling the Spark TextArea control in Flex 4

by Peter deHaan February 18, 2010

The following example shows how you can programmatically scroll the Spark TextArea control in Flex 4 by setting the vertical scroll position on the horizontal and vertical scroll bars in the scroller, horizontalScrollBar, and verticalScrollBar skin parts.

Read the full article →

Listening for the Enter key in a Spark RichEditableText control in Flex 4

by Peter deHaan February 12, 2010

The following example shows how you can detect when the user presses the Enter key in a Spark RichEditableText control in Flex 4 by setting the Boolean multiLine property to false and listening for the enter event.

Read the full article →

Setting the letter spacing on the Spark TextInput control in Flex 4

by Peter deHaan February 10, 2010

The following example shows how you can set the letter spacing on the Spark TextInput control in Flex 4 by setting the trackingLeft and trackingRight styles.

Read the full article →

Displaying all items in a Spark DropDownList control drop down menu in Flex 4

by Peter deHaan February 10, 2010

The following example shows how you can display all items in a Spark DropDownList control’s drop down menu in Flex 4 by creating a custom DropDownList skin and removing the Scroller skin part.

Read the full article →

Getting the current value on a Spark Spinner control in Flex 4

by Peter deHaan February 9, 2010

The following example shows how you can get the currently selected value from a Spark Spinner control in Flex 4 by getting the value property.

Read the full article →

Setting the corner radius on a Spark BitmapImage control in Flex 4

by Peter deHaan February 7, 2010

The following example shows how you can set the corner radius on a Spark BitmapImage control in Flex 4 by creating a mask with a corner radius (in this case a Spark BorderContainer container with the cornerRadius style set).

Read the full article →

Creating a simple image gallery using the Spark PopUpAnchor control in Flex 4

by Peter deHaan February 7, 2010

The following example shows how you can create a simple image gallery using the Spark PopUpAnchor control in Flex 4 using the PopUpAnchor, BitmapImage, and MX Image controls.

Read the full article →

Setting the horizontal scroll policy on a Spark DropDownList control in Flex 4

by Peter deHaan February 6, 2010

The following example shows how you can set the horizontal scroll policy on a Spark DropDownList control in Flex 4 by setting the horizontalScrollPolicy style on the drop down menu’s Scroller skin part.

Read the full article →