AutoComplete

Advanced Flex AutoComplete component which supports browsing, selecting and ordering multiple items.

Important Info

  • License: The component is freeware. You’re welcome to use it anyway you’d like, I just ask that you send back any bug fixes or improvements.
  • Support: I try as hard as possible to respond to all questions within a day. I’ve been using the component for a while now and am pretty confident that it works well. If you’d like to extend it I’m happy to work with you to get your feature working.

Version History

Other Options

A single solution usually doesn’t work for everyone. Here are some other excellent Flex Autocomplete components which may better fit your needs.

805 Responses to “AutoComplete”

  1. Sherman says :

    Is there any way to configure the component such that an entered string can be “custom” (i.e. not in the list) but its name match the prefix of one or more items in the list?

    For example, I want to enter “goo” but one of the options in the list is “goober”. Right now, it seems no matter what I do, “goober” would always be what gets selected.

    I realize this may be a bit of an edge case, but it’s one for which I really hope there can be a clean work-around. Thanks.

    • Hillel says :

      If you hit escape to close the popup you should be able to enter any value.

      Hope this works as a solution for you…

    • DAVIDONE says :

      Hi! First, thank you for this wonderful component.
      I have a question.
      Why seems like text property in AutoComplete component always returns an empty string despite it appears correctly into the textinput box?

      _tiNotesBrief.text = “value”;

      trace(“TEXT SET ” + _tiNotesBrief.text);

      last trace printout an empty string =(
      Thanks

      • Hillel says :

        Text is a read-only property which returns the text of the selected items (ie, “one, two, three”).

        To set the search string which appears in the component you can set the searchText property.

        To set the selected item(s) you want to use either selectedItem, selectedItems or selectedItemIds.

        Hope this helps

      • DAVIDONE says :

        i don’t get why i can’t reply to your last post… anyway…

        what if i initialize AutoComplete component with a custom string that’s not any of the ones into the dataProvider list?

        if no changes are made, i guess no selectedItem will be set and i can’t get back my string.

        am i wrong?
        thanks
        Davide

      • Hillel says :

        I think it would depend on what allowNewValues is set to.

      • DAVIDONE says :

        allowNewValues is set to true

  2. Sherman says :

    Thanks, Hillel; that does work. I wonder, though, if anyone else might find it useful to have a mode where no item in the drop down is selected by default but instead would require arrowing down or clicking on an item to explicitly select it. I think that might be the more intuitive solution to this particular issue.

  3. deanpaul says :

    Great..but really needs to be rewritten for spark. Also api is cluttered…i feel the advanced features need to be broken out into a separate module.

  4. deanpaul says :

    btw, is there a simple way to have the prediction drop box using a spark combobox? :(

  5. Dennis says :

    Hi Hillel,

    I have a problem regarding the arrow down key not working properly on the dropDownList.

    1. When typing only one or two letters as a searchKey, scrolling the dropdown results is working just fine.
    2. If I input in the searchKey a long string that has no results, then repeating the search done in #1, the list always highlights the first item on the dropdown results.
    (i.e. when pressing the arrow down key, it will move down, but it will immediately return to the first item in the list)

    Please help. Thank you.

    • Hillel says :

      I’m having trouble replicating the issue. If you could create a sample app demonstrating the issue I’d be happy to help you debug it.

  6. judoole says :

    Excellent component!
    Request: There should be a https://github.com/hillelcoren with the Autocomplete as an own repo or together with some other of components you may want to share.

    That way it would be much easier for the rest of us to contribute to feature requests such as
    As a user
    I want to have the possibility to always show the dropdown
    So that I don’t have to type to show all my options.

    OC ;)

  7. Jigar Patel says :

    hello,

    i want to use this .swc file in flash Professional CS5.5 but it’s getting some unwanted error so please help me that it is usable in flash professional application.

    • Hillel says :

      I’m not sure if the component works in Flash Professional, at least I haven’t tried it myself.

      If you could send me the details of the error I can try to help.

      • Jigar Patel says :

        hi,

        i got this type of error so please tell me how to remove this and which things used insted of this in flash professional

        Error : 1046: Type was not found or was not a compile-time constant: [mx.binding]::IBindingClient.

      • Hillel says :

        Have you tried using the Fx3 SWC?

  8. Jigar Patel says :

    hello,

    yes i was used Fx3 swc for this implementation but it’s not working.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 64 other followers