Tag Archive for 'viewstack'

11
Jan

Setting the data provider of a Flex ButtonBar control to a ViewStack container

The following example shows how you can set the data provider of a ButtonBar control in Flex to a ViewStack container.

Full code after the jump.

Continue reading ‘Setting the data provider of a Flex ButtonBar control to a ViewStack container’

04
Jan

Using a timer to change the selected index of a ViewStack container in Flex

The following example shows how you can use a timer to change the selected index in a Flex ViewStack container.

Full code after the jump.

Continue reading ‘Using a timer to change the selected index of a ViewStack container in Flex’

25
Aug

Enabling and disabling specific tabs in a TabBar control

The following example shows how you can enable and disable individual tabs in a TabBar control by setting the enabled property in the ViewStack container’s child containers.

Full code after the jump.

Continue reading ‘Enabling and disabling specific tabs in a TabBar control’

22
Aug

Creating a vertical ToggleButtonBar in Flex

The following example creates a ToggleButtonBar control in Flex and sets its toggleOnClick property to true.

According to the Flex 2.0.1 documentation:

If you set the toggleOnClick property of the ToggleButtonBar container to true, selecting the currently selected button deselects it. By default the toggleOnClick property is set to false.

You can check out the different behaviors of the toggleOnClick property by selecting or deselecting the check box in the upper left corner. Likewise, you can change the ToggleButtonBar control’s direction property by changing the selected value in the combo box in the upper-right corner. If the toggleOnClick property is set to true and you deselect a button in the ToggleButtonBar control, the ToggleButtonBar control’s selectedIndex property is set to -1 and the Flex application sets the ViewStack container’s visible property to false.

Full code after the jump.

Continue reading ‘Creating a vertical ToggleButtonBar in Flex’

21
Aug

Adding icons to a Flex TabBar control

This example is pretty similar to the previous entry “Adding icons to a Flex TabNavigator control” although it uses a TabBar control instead of a TabNavigator control. Well, that and this post doesn’t bother with an XML object and the DataGrid controls.

Full code after the jump.

Continue reading ‘Adding icons to a Flex TabBar control’

19
Aug

Creating a vertical LinkBar in Flex

I was playing around with the Flex LinkBar control this morning and somehow I never noticed it had a direction property. Well, it does, so I made a quick little app which filters an XML data provider based on which tab you’re on.

Full code after the jump.

Continue reading ‘Creating a vertical LinkBar in Flex’