Hi all,

I'm pretty new in action script, I'm trying to do a search application by flash AS2 and xml, it works fine if i just search any words what xml file already have. but i fail to add a script to show "No result" when user search words which are not available.

is it correct if i write code like this:

if (longStr.indexOf(searchStr)==-1){
results_txt.text = "No result";


Why it also apear "No result" when i search the correct words?

Please take a look this file:


Thanks a lot