Advance sorting of array (instant sort)

Basically I’m trying to create something in flash that replicates a inhouse program we are trying to train on.

There is a field to search on, i.e. Medications. So when you start typing it showes things that start matching it. i.e. “asp” would display, aspirin & everything that start with “asp”. I haven’t trouble figuring out how to start doing this; any ideas?