Home > User Interface > ChatBot
FILE CATEGORIES
Open with: Flash MX 2004, Flash 8, Flash CS3, Flash CS4
ActionScript version: Action Script 2.0
This is a bot that chats and that can be easily customized! You can easily add new sentences in the XML configuration file enriching the way users interact with the program.
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

Twitter