0 Replies Latest reply on Apr 4, 2012 8:24 AM by mspecht001

    different component listener behaviour since flex 4.6

    mspecht001

      I used  a custom component combobx in our project. It consists of a textinput and an toggleButton. If you press on the button or the textfield a pop up opens. Since I migrated to flex 4.6 the pop up doesn't open. Here is the code:

       

      public function CustomCombobox(){

       

                                    addEventListener(ResizeEvent.RESIZE, resizeHandler);

       

                                    ti = new TextInput();

                                    ti.id="inputDisplay";

                                    ti.percentWidth = 65;

        ti.selectable = false;

                                    ti.addEventListener(MouseEvent.CLICK, openPopupList);

                                    ti.editable = false;

       

                                    tb = new ToggleButton();

                                    tb.id="toggleButton";

                                    tb.percentWidth = 65

                                    tb.percentHeight = 100;

                                    tb.setStyle('skinClass', ComboBoxToggleButtonSkin);

                                    tb.addEventListener(MouseEvent.CLICK, openPopupList);

       

                                    addElement(ti);

                                    addElement(tb);

       

                          }

       

      Does anybody have an idea why this behaviour changed?