0 Replies Latest reply on Apr 22, 2007 9:19 PM by Max Frigge

    Custom ComboBox Component

    Max Frigge
      Hi everybody I am a Flex Newbie and got some problems creating a ComboBox that only closes if you click on the Open/Close Arrow. I am not sure yet how to realize, so i would appreciate some advise :-). But my main problem is that i got an error msg "Could not resolve <mc:ToggleComboBox> to a component implementation" when i try to add it to my application.

      Here's my AS:

      package components
      import mx.controls.ComboBox;
      import mx.controls.Alert;

      public class ToggleComboBox extends ComboBox
      public function ToggleComboBox()

      override public function set close(trigger:Event):void


      My App looks like this:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="horizontal" verticalAlign="middle"
      backgroundGradientColors="[#ffffff, #ffffff]" xmlns:mc="components.*">

      <mx:ArrayCollection id="introData">

      <mc:ToggleComboBox id="customCombo" dataProvider="introData"/>

      <mx:ComboBox id="regCombo" dataProvider="introData"/>

      The Actions Script File for the Component is located in a folder named "components".

      Cheers! Max0n