i would like to know if i can search for specific keywords in the text object . so if the user types something into a textbox, can i search for specific keywords?
Develop games in your browser. Powerful, performant & highly capable.
You can use regular expression for text matching purpose, as it's powerful and well supported in c2.
I've attached a capx to demonstrate the regex usage. Here's a few links that may help you to understand regular expression:
http://www.w3schools.com/jsref/jsref_obj_regexp.asp
https://developer.mozilla.org/en/docs/W ... cts/RegExp
http://regex101.com/
Herks thanks but that's not what i want
i want the game to search not the user. the user types something and the game searches for keywords in what the user has typed and do accordingly