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.
Continue reading ‘Determining when the DateField control is opened or closed in Flex’
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.
Continue reading ‘Detecting when the user changes the selected month in the DateChooser control in Flex’
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.
Continue reading ‘Aligning the selected date in a DateField control in Flex’
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.
Continue reading ‘Setting a custom tool tip field on a ButtonBar control in Flex’
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.
Continue reading ‘Setting the disabled text color on a TextArea control in Flex’
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.
Continue reading ‘Setting text selection on a TextArea control in Flex’
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.
Continue reading ‘Condensing HTML white space in the RichTextEditor control in Flex’
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.
Continue reading ‘Condensing HTML white space in the TextArea control in Flex’
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.
Continue reading ‘Sequencing effects in Flex using the mx:Sequence tag (redux)’
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.
Continue reading ‘Setting the letter spacing in the RichTextEditor control in Flex’
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.
Continue reading ‘Looping over each item in an Array in ActionScript 3.0′
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 setting the verticalGap style.
Full code after the jump.
Continue reading ‘Setting the vertical spacing between items in a LinkBar control in Flex’
The following example shows how you can set the horizontal spacing between items in a Flex LinkBar control by setting the horizontalGap style.
Full code after the jump.
Continue reading ‘Setting the horizontal spacing between items in a LinkBar control in Flex’
The following example shows how you can change the color of the item separators in a Flex LinkBar control by setting the separatorColor style.
Full code after the jump.
Continue reading ‘Setting the separator color on a LinkBar control in Flex’
In a previous example, “Setting the background color on a VideoDisplay control in Flex”, we saw how you could modify the background color of a VideoDisplay control in Flex by setting the backgroundColor style.
The following example shows how you can set the background alpha on a Flex VideoDisplay control by setting the backgroundAlpha style.
Full code after the jump.
Continue reading ‘Setting the background alpha on a VideoDisplay control in Flex’