Author Archive for peterd

14
May

Determining when an ArrayCollection changes in Flex

The following example shows how you can detect when a Flex ArrayCollection has changed (items added, removed, refreshed) by listening for the collectionChange event.

Full code after the jump.

Continue reading ‘Determining when an ArrayCollection changes in Flex’

13
May

Setting the corner radius on a NumericStepper control in Flex

The following example shows how you can set the corner radius on a Flex NumericStepper control by setting the cornerRadius style.

Full code after the jump.

Continue reading ‘Setting the corner radius on a NumericStepper control in Flex’

12
May

Using a NumericStepper control as an item editor for a DataGrid control in Flex

The following example shows how you can use a NumericStepper as an item editor for a Flex DataGrid control by setting the itemEditor and editorDataField properties on the DataGridColumn object.

Full code after the jump.

Continue reading ‘Using a NumericStepper control as an item editor for a DataGrid control in Flex’

11
May

Creating an editable DataGrid control in Flex

The following example shows how you can create an editable Flex DataGrid control by setting the editable property on the DataGrid and DataGridColumn objects.

Full code after the jump.

Continue reading ‘Creating an editable DataGrid control in Flex’

10
May

Displaying specific items from an ArrayCollection in Flex

The following examples show how you can display specific items in a Flex ArrayCollection using the getItemAt() method and the array access operator ([]).

Full code after the jump.

Continue reading ‘Displaying specific items from an ArrayCollection in Flex’

09
May

Setting the data tip offset in a Slider control in Flex

The following example shows how you can control the data tip offset in a Flex HSlider control by setting the dataTipOffset style.

Full code after the jump.

Continue reading ‘Setting the data tip offset in a Slider control in Flex’

09
May

Using a Slider control as a DataGrid column item renderer in Flex

The following example shows how you can use an HSlider control as an item renderer in a Flex DataGrid control.

Full code after the jump.

Continue reading ‘Using a Slider control as a DataGrid column item renderer in Flex’

08
May

Determining the number of lines in a TextArea control in Flex

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’

07
May

Setting the open duration for an Accordion container 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’

06
May

Setting the tick thickness on a Slider control 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’

05
May

Setting the vertical gap between the track and label in the ProgressBar 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’

04
May

Setting a minimum and maximum allowable year in the DateChooser 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’

03
May

Displaying an error tool tip for an Image 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’

02
May

Changing the background color of the DateChooser 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’

01
May

Setting the separator width on a LinkBar 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’