From the monthly archives:

April 2008

The following example shows how you can determine when the Flex DateField control’s is opened or closed by listening for the open or close events.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can detect when the user changes the selected month in the Flex DateChooser control by listening for the scroll event.

Full code after the jump.

[click to continue…]

{ 6 comments }

The following example shows you how you can align the selected date in the Flex DateField control’s text field by setting the textAlign style.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can specify a custom field to be used for a tool tip in a Flex ButtonBar control by setting the toolTipField property.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can set the text color on an enabled and disabled Flex TextArea control by setting the color and disabledColor styles.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can set the selected text in a Flex TextArea control by using the setSelection() method.

Full code after the jump.

[click to continue…]

{ 5 comments }

In a previous example, “Condensing HTML white space in the TextArea control in Flex”, we looked at how you could condense HTML formatted text in a TextArea control by setting the condenseWhite property.

The following example shows you how you can condense white space around HTML tags using the Flex RichTextEditor control, the htmlText property, and the condenseWhite property.

Full code after the jump.

[click to continue…]

{ 7 comments }

The following example shows you how you can condense white space around HTML tags using the Flex TextArea control, the htmlText property, and the condenseWhite property.

Full code after the jump.

[click to continue…]

{ 0 comments }

Sequencing effects in Flex using the mx:Sequence tag (redux)

by Peter deHaan April 23, 2008

In a previous example, “Sequencing effects in Flex using the mx:Sequence tag”, we saw how you could sequence tween effects using the <mx:Sequence /> tag.
The following example shows how you can create the same sequenced effects using ActionScript instead of MXML.
Full code after the jump.

Read the full article →

Setting the letter spacing in the RichTextEditor control in Flex

by Peter deHaan April 22, 2008

The following example shows how you can set the letter spacing in a Flex RichTextEditor control by setting the textAreaStyleName and letterSpacing styles.
Full code after the jump.

Read the full article →

Looping over each item in an Array in ActionScript 3.0

by Peter deHaan April 21, 2008

The following example shows how you can loop over an Array object and modify items using the Array class’s forEach() method.
Full code after the jump.

Read the full article →

Setting the vertical spacing between items in a LinkBar control in Flex

by Peter deHaan April 20, 2008

In a previous example, “Setting the horizontal spacing between items in a LinkBar control in Flex”, we saw how to change the horizontal spacing between items in a Flex LinkBar control by setting the horizontalSpacing style.
The following example shows how you can set the vertical spacing between items in a vertical Flex LinkBar control by [...]

Read the full article →