This is a bot that chats and that can be easily customized!
How to configure the XML
Best way to learn is to look at the XML included, the root node can be named anything, and after that the node names are the key words, the program takes a sentence, breaks apart the words and searches the keywords in order till it finds some text.
Special Characters
In the XML you can include special character that add functionality:
- the "|" character (with out quotes) is used in the XML to represent a newline
- the ":" is used to indicate a function call, the component will call it's callback function and pass it the string after ":",
Check the included FLA for an example on how this works.
Functions
It really only has one function "say(text)" this makes the bot say what ever you pass it.
Available:
Flash Player 7 and above (ActionScript 2.0)
Credits:
Flash Player 7 and above / AS 2.0 adjustments - Librarian
Flash Player 6 / AS 1.0 original development - Chad Adams
Librarian recommends:
3 comments
Add comment
Adavur
Pretty good! :)
But I have a problem opening the .FLA-file. I’ve tried Flash 8, but it just gave me the message: “Uexpected file format”
What can I use, please tell?
Mathias
#  /  PM  /  posted on Apr 04, 2009
kapital3
This Chat is automatet?
#  /  PM  /  posted on Apr 24, 2010
peeter
Hi! Thanks for giving away this great component for free. The idea and arrangement in the xml file are simply great! There's only one thing missing: Can you make the Chatbot ignore upper cases? He only understands "who are you?" but neither "who are You?" nor "Who are you?". Would be perferct!! Thanky anyway, peete
#  /  PM  /  posted on Aug 06, 2010