DropDownList closes when it triggers an alert

So in Flex 4, I have a DropDownList control that (according to a variable previously defined in the application) will trigger an alert via a handler function. The alert is fine, but the DropDownList control does not close. What's worse, is that when I navigate away from the view with the DropDownList control always open, that the choice of the DropDownList control are always visible and active, even if the DropDownList control is not on the active screen.

I tried in the same function of Manager, both until after the alert is triggered, to set the selectedindex of the DropDownList control to-1, and I tried myDropDownList.close, but to no avail.

Any thoughts? Thank you.

Hello

Have you tried to run what you need to do after the closure of the list...

David

protected function dropdownlist1_closeHandler(event:DropDownEvent):void

{

... do what ever

Alert.Show ("hello world");

}

Tags: Flex

Similar Questions

Maybe you are looking for