7 Replies Latest reply on Apr 8, 2010 10:03 PM by Flex harUI

    Flex popup bug

    CRez79

      I seem to be having a issue with a large flex app. Regardless of browser,

       

      In a view,

       

      #Click combobox

      +Combobox pops up

      #Click outside of the browser

      +Combobox closes

      #Click combobox (same one as before)

      +Combobox pops up

      #Click outside of the browser

      +Combobox does NOT close

       

      In a small application (brand new project) this bug does not appear. But for some reason in a large application I've been help develop on, I get this bug.

       

      Tia

      Charles

        • 1. Re: Flex popup bug
          CRez79 Level 1

          Ok, for additional testing I created 2 functions that handle 'closing' and 'focusOut'.

          I click the popup, then click outside the browser, the 2 functions are called.

          I return to the browser by clicking on the combobox again to have the popup occour, but the 2nd time I leave the browser my functions are not called. So it's almost as if some how the control is losing something here, it's not that it's uninitialized (i created a function for that) it's just almost like the events aren't being fired the 2nd time around.

          • 2. Re: Flex popup bug
            CRez79 Level 1

            The issue becomes more evident when I create a sample project. I have 2 swf's that are modules. Both contain dropdown's. Normally if you click out side of drop box the box closes. But when you click in swf#1 then swf#2 the dropdown#1 does not close. But if you click within swf#1's window area it does close. Is there a way I can make swf#1 listen to the events from swf#2?

             

            Chuck

            • 3. Re: Flex popup bug
              Flex harUI Adobe Employee

              File a bug or post your simple test case.

              • 4. Re: Flex popup bug
                CRez79 Level 1

                I have a project that I would like to zip then post. But I can only attach images and movies? Is there any quick place I can upload my project to or am I able to attach my project somehow to this thread?

                 

                In the mean time, I have used free service to share this test project. Let me know if there is any issues with downloading this zip. It's a complete test-case project.

                 

                http://www.4shared.com/file/257601275/251e8a22/popup.html

                • 5. Re: Flex popup bug
                  Flex harUI Adobe Employee

                  I don't want to see a project with images.  Please make a simplified test

                  case in about 20 lines and copy/paste that to this thread.

                  • 6. Re: Flex popup bug
                    CRez79 Level 1

                    Thanks for the reply. Ok, I will do my best

                     

                     

                    --App1.mxml-----------------------

                    <?xml version="1.0" encoding="utf-8"?>

                    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="200" height="300" mouseOut="mouseOut()">

                     

                    <mx:Script>

                    <![CDATA[

                    import mx.collections.ArrayCollection;

                     

                    [Bindable]

                    private var col:ArrayCollection = new ArrayCollection(['value','value2','value3']);

                     

                    private function mouseOut():void

                    {

                    trace("mouseout");

                    }

                    ]]>

                    </mx:Script>

                    <mx:ComboBox dataProvider="{col}"/>

                    </mx:Application>

                    --App1.mxml-----------------------

                     

                    --App2.mxml-----------------------

                     

                    <?xml version="1.0" encoding="utf-8"?>

                    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" width="400" height="300" backgroundColor="#33eeFF">

                     

                    <mx:Script>

                    <![CDATA[

                    import mx.collections.ArrayCollection;

                     

                    [Bindable]

                    private var col:ArrayCollection = new ArrayCollection(['data1','data2','data3']);

                    ]]>

                    </mx:Script>

                     

                    <mx:HBox>

                    <mx:ComboBox dataProvider="{col}"/>

                    <mx:ComboBox dataProvider="{col}"/>

                    <mx:ComboBox dataProvider="{col}"/>

                    </mx:HBox>

                     

                    </mx:Application>

                    --App2.mxml-----------------------

                     

                    I'm sorry it's more then 20 lines but I'm not sure what else to cut. I'm not including the 'housing' of these two swf's that basicly present them side by side like it's one, but it's actually 2.
                    • 7. Re: Flex popup bug
                      Flex harUI Adobe Employee

                      I am unable to reproduce the problem.  I can show the dropdown and click

                      anywhere, even outside the browser and the dropdown will go away.

                       

                      Which version of Flex are you using?  Try 4.0 if you haven't.