0 Replies Latest reply on Feb 14, 2007 12:42 PM by jlingwai

    extending comboBox

    jlingwai Level 1
      Hey,

      I'm attempting to extend the combobox and create a custom component that doesn't close the combobox when an item is selected. So I have the following:

      package com.comboBox
      {
      import mx.controls.ComboBox;


      public class ComboCheckBox extends ComboBox
      {
      import mx.events.FlexEvent;
      import mx.events.FlexMouseEvent;
      import flash.events.MouseEvent;
      import mx.controls.ComboBox;
      /**
      * @private
      */
      override protected function downArrowButton_buttonDownHandler(
      event:FlexEvent):void
      {
      // The down arrow should always toggle the visibility of the dropdown.
      var fakeTrigger:MouseEvent = new MouseEvent(MouseEvent.MOUSE_DOWN);
      displayDropdown(true);
      }

      }
      }


      But when i trie to compile Its giving me this erro message:
      1180: Call to a possibly undefined method displayDropdown.

      Am I missing something here?

      Josh