flash q
flash q
- Started
- Last post
- 3 Responses
- imakedesign
flash q
hi,how can i check to see if a word is in a text feild. what i have below only works if the word is the only one in the textfeild.
if (msg_imp.text == "word1") {
_root.form.msg_imp.text = "word2"
}
- spiralstarez0
you need to have an event handler to detect it.
look up the indexOf();
method. It's possible like that or with a related function
- imakedesign0
ah thanks for the tip i looked it up and it now works.
if (msg_imp.text.indexOf "word1")>=0 {
_root.form.msg_imp.t ext = "word2"
}
- randoman0
trace (mc.textfield.text);