MoleDirect
Technical User
I am making a chat-like program, and I am using a multi line text box that will hold the chat dialog. every time I type in the box and hit submit, it erases the last answer, and p[laces a new one.. I am also hoping to have it place my text there too... Is this hard to do?
ALSO... I want to use the indexOf() command to search for certain words in a text in an If Then statement so I can have it reply using certain words in the text... Here is the code so far for the submit button:
ALSO... I want to use the indexOf() command to search for certain words in a text in an If Then statement so I can have it reply using certain words in the text... Here is the code so far for the submit button:
Code:
on (release, keyPress "<Enter>") {
if ( _root.user.text="1") {
_root.reply.htmltext = "<b>Bot: </b> I got your Test";
}else{
_root.reply.htmltext = "<b>Bot: </b> I do not understand.";
}
gotoAndPlay(2);
}