The event.relatedObject should be the object hit. If you hit the dropdown and check its "owner" property, you should end up back at the ComboBox
Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui From: [email protected] [mailto:[email protected]] On Behalf Of johncch85 Sent: Tuesday, November 10, 2009 12:38 AM To: [email protected] Subject: [flexcoders] Nested PopUp and Mouse_Down_Outside event Hi, I'm trying to solve this problem here and I'd like to ask if anyone has any suggestions? I have a panel instance that is contextual and will be shown by the popupmanager when the user clicks on a button. To facilitate auto hiding when the user clicks outside the panel, I'm using the FlexMouseEvent.MOUSE_DOWN_OUTSIDE to trap the event and close the popup. I have a custom component inside this panel that uses a pop up similar to the date field. The custom component utilizes a class that extends UIComponent which acts as a "popup" to select an input value that will fill in to a textbox. The principle of operation is totally similar to that of the datefield. Unfortunately, this custom component has a few combo boxes inside. The main problem happens because of the listening of the MOUSE_DOWN_OUTSIDE event in the parent panel. I am able to stop the event from happening by preventing the mousedown events from the inner popup from bubbling up the display chain. The only thing I am unable to deal with is the bubbling up of the event when the user clicks the combobox dropdown which is the list item. From my understanding, it is handled by a separate popupmanager hence the event is not bubbled up the panel display chain. Is there any solution or any way around this? If not I'll have to switch the combo boxes with some other components, which I would like to avoid as I feel that the combobox presents the least clicks to the users. Thank you!

