My chatbot in flash (as3.0 with source)

I was inspired by an interesting chatbot flash made by Chad Adams.
I can’t fully understand his original class in flash mx, so just write one myself.
I am not good at using action script to deal with XML and strings.
So no doubt the class can be improved.

Don’t laugh at my bot, after all its brain only weighs 2 KB!
[SIZE=5][COLOR=#000099]My chatbot source[/COLOR] [/SIZE]is [COLOR=#000099]Here[/COLOR]: [URL=“http://flaswf.googlecode.com/files/flash_chatbot_v1.0.rar”][COLOR=#3333ff]flash_chatbot_v1.0.rar[/COLOR][COLOR=#3333ff] [/COLOR][COLOR=#3333ff]
[/COLOR][COLOR=#006600]Chad Adams’s original code[/COLOR] is available at [COLOR=#999999]http://www.flashcomponents.net/component/flash_chat_bot.html[/COLOR]
All in all, this is one simple experiment. All it can do is to search the XML data (by Chad) to find answers according to some word you typed in and display the answers.

Any comments about how to improve it?
Thanks.