Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3962700
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:07:38+00:00 2026-05-20T03:07:38+00:00

I have an editable mx:Combobox . I want to catch two events: When a

  • 0

I have an editable mx:Combobox. I want to catch two events:

  1. When a user enters some text, or edits some text.

  2. When a user changes the selection (selects an item from the combo box).

Is it possible? I have been using change event, but it is fired in both cases and I can’t differentiate it. Is there a better way of doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T03:07:39+00:00Added an answer on May 20, 2026 at 3:07 am

    Use change event for selected item, use keyUp event for text editing (note hitting Shift+Key fires keyUp twice). Change will be fired for both, but just check if the selectedItem is null to get around this. Also, editable comboBox is not available in Flex 4, so if your thinking of moving to Flex 4 soon, keep this in mind:

                private var ac:ArrayCollection;
    
                private function onInit():void{
    
                    ac = new ArrayCollection([{name:"john"}, 
                        {name:"Stephen"}]);
                    myCombo.dataProvider = ac;
                    myCombo.labelField = "name";
                }
    
                private function onComboChange(event:Event):void{
                    if(event.target.selectedItem != null){
                        trace("Item Selected: " + event.target.selectedLabel);
                    }
                }
    
                private function onKeyUp(event:Event):void{
                    trace(event.target.text);
                }
    
        <mx:ComboBox id="myCombo" x="50" y="10" editable="true" change="onComboChange(event)"
                     keyUp="onKeyUp(event)"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Tix.ComboBox with an editable text field. How do I force the
I have an editable ComboBox component and I want to reference the TextInput that
Is there a way to have a function return a editable reference to some
I have editable combobox where not always the preferred item is in the drop-down
I have an editable DataGridView with SelectionMode set to FullRowSelect (so the whole row
I would like to have a ComboBox control on a form which will be
I have an editable JComboBox which contains a list of single letter values. Because
OK So I have a combo box which selects an administrator from a list
I have a ComboBox that is bound to an ObservableCollection of custom UserControls. Each
I want to implement the following combobox in ExtJS. The question is, how to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.