The following example shows how you can get the number of lines in a Flex TextArea control by using the getTextField() method (in the mx_internal namespace) and the numLines property.
Full code after the jump.
Continue reading ‘Determining the number of lines in a TextArea control in Flex’
The following example shows how you can set the open duration for a Flex Accordion container by setting the openDuration style.
Full code after the jump.
Continue reading ‘Setting the open duration for an Accordion container in Flex’
The following example shows how you can set the thickness of a tick on a Flex HSlider control by setting the tickThickness style.
Full code after the jump.
Continue reading ‘Setting the tick thickness on a Slider control in Flex’
The following example shows how you can adjust the vertical gap between the track and label in the Flex ProgressBar control by setting the verticalGap style.
Full code after the jump.
Continue reading ‘Setting the vertical gap between the track and label in the ProgressBar control in Flex’
The following examples show how you can set a minimum and maximum allowable year in the Flex DateChooser control by setting the minYear and maxYear properties.
Full code after the jump.
Continue reading ‘Setting a minimum and maximum allowable year in the DateChooser control in Flex’
The following example shows how you can display an error string on the Flex Image control when an image is unable to be loaded.
Full code after the jump.
Continue reading ‘Displaying an error tool tip for an Image control in Flex’
The following example shows how you can change the background color of a Flex DateChooser control by setting the backgroundColor and backgroundAlpha styles.
Full code after the jump.
Continue reading ‘Changing the background color of the DateChooser control in Flex’
The following example shows how you can change the width of the item separators in a Flex LinkBar control by setting the separatorWidth style.
Full code after the jump.
Continue reading ‘Setting the separator width on a LinkBar control in Flex’
The following example shows how you can detect when a Flex Alert control is closed by listening for the close event by specifying the closeHandler parameter in the static Alert.show() method.
Full code after the jump.
Continue reading ‘Detecting when an Alert control is closed in Flex’
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’