5 Replies Latest reply on Jul 26, 2010 11:19 PM by NMongiya

    Combox EventListener problem with SDK 3.5

    NMongiya

      I am trying to build a custom combobox component and making that editable at the time of open and non-editable after close. Below is my code that is working fine SDK 3.2 but with SDK3.5 it is now. I mean with SDK3.5 when i click open it closes itself automatically..

       

      public class LookUpComboBox extends ComboBox
          {
             
              public function LookUpComboBox()
              {
                  super();
                  addEventListener(Event.OPEN,startLookUp);
                  addEventListener(Event.CLOSE,stopLookUp);
              }
             
              private function startLookUp(e:Event):void
              {
                  editable = true;
                 
              }
              private function stopLookUp(e:Event):void
              {
                  editable  = false;
              }
          }

       

      Can someone please help me out on this?