Archive for September, 2011

ButtonBar radio logic hack

September 30, 2011 Leave a comment

Update: Set the requireSelection property to true.

When the button bar is used as a navigation tool for a set of tabs, it doesn’t make sense for the selected button to be unselected if the user clicks on it.

It is also fairly typical for a result handler of the IndexChangeEvent.CHANGED to utilize the button bar’s selectedItem property to access a piece of data. This causes runtime errors when the selected item is no longer selected because of a re-click on the selected button.

Read more…

Workspace in use or Cannot be Created

September 23, 2011 Leave a comment

If you close FlashBuilder and it doesn’t shut down correctly, sometimes a .lock file will be left in the .metadata directory of your workspace.

If you try and restart FB with the .lock file present, you will get an error message about the workspace being in use. Either make sure the java program is killed or remove the lock file manually in order to reload FB.

This seems to happen to me every time I shut down with the latest version ]: