Hi,I am developing a search Field in AS3 that by the time I type in it, it
shows suggestions under it from an XML file.
The search function works fine, it suggests words just as I type the first
letters. Each suggested keyword is rendered one above the other, in
TextFields that are created on runtime, by using a loop.

What I want to achieve is to select the same letters I type into the search
field,  in the suggestion fields.

For example if I am searching for "Sunshine" I'd start to type the first 2
letters as "su" and all the suggestions that begin with "su" like "sun",
"sunny", "super" appear, but I want that the "S"and the "U" are selected in
the suggestions, Moreover if I add another letter to "su" to become "sun",
the first three letters in this case would be selected in the suggestions.

I know it would be achieved using:

Suggestion.alwaysShowSelection = true;
Suggestion.setSelection(whatever,whatever);// but what "whatever" should I
put to much the InputTF letters to highlight in the Suggestion TextField?


Thanks

-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to