Entries for month: June 2010

Flex 4 Spark ComboBox/DropDownList & Deep Linking Bug

A few weeks ago I converted a project to Flex 4 from the Flex 3 SDK. Overall it wasn't too terribly bad, even though the project is rather large. However, I am using deep linking to track the users position in the application, so that bookmarks can easily be created.

One of the things that readily became apparent is that deep linking, using the BrowserManager, breaks normal operation of Spark ComboBox and DropDownList components. If you attempt to perform a browsermanager.setFragment() in the change handler of one of these components, the dropdown list will not close properly and requires an additional click.

The workaround for this is to perform your setFragment call in a method called by callLater(). It's not an optimal workaround, especially if you need to do this in a lot of places in your app. But it works. 

I filed a bug for this with Adobe, and it was confirmed by them as a bug. The downside is that it has been closed and deferred to a later build. I figured I would post this as a quick point of reference for those of you who run into this. If you want to check out the bug report, see the Flex SDK Bug site. I hope this helps save someone else some time and hassle.

3 Comments Tags: Flex, Flash & AS3