Bruce Jawn
August 31st, 2008, 02:38 AM
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.
http://4.bp.blogspot.com/_VM_xh6rvt_I/SLolAiu1WvI/AAAAAAAAAFE/lSh2HfafcZ0/s400/chatbotv1.jpg
Don't laugh at my bot, after all its brain only weighs 2 KB!
My chatbot source is Here (http://code.google.com/p/flaswf/downloads/list): flash_chatbot_v1.0.rar (http://flaswf.googlecode.com/files/flash_chatbot_v1.0.rar)
Chad Adams's original code is available at http://www.flashcomponents.net/component/flash_chat_bot.html (http://www.flashcomponents.net/component/flash_chat_bot.html)
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.
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.
http://4.bp.blogspot.com/_VM_xh6rvt_I/SLolAiu1WvI/AAAAAAAAAFE/lSh2HfafcZ0/s400/chatbotv1.jpg
Don't laugh at my bot, after all its brain only weighs 2 KB!
My chatbot source is Here (http://code.google.com/p/flaswf/downloads/list): flash_chatbot_v1.0.rar (http://flaswf.googlecode.com/files/flash_chatbot_v1.0.rar)
Chad Adams's original code is available at http://www.flashcomponents.net/component/flash_chat_bot.html (http://www.flashcomponents.net/component/flash_chat_bot.html)
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.