Flex: Simple Predictive Text Example

We built a predictive TextInput component in an AS2 for a project that we have been working on for a client. I thought it might be good practice to port it to Flex. I’ve created a very simple example of a predictive text component that uses a local ArrayCollection to populate the results. Obviously the functionality is quite limited, the concept is there. Next on the list of things to do would be to capture keypresses for up and down arrows so the user could select an item in the list more easily as well as creating a more robust data provider example (possibly from Google or something). I’ll be sure post any updates.

[Check out the sample]

[Download the source]