-
Search xml
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";
}
else
{
//trace("yes");
myResultList.push(myList[i]);
}
Why it also apear "No result" when i search the correct words?
Please take a look this file:
http://dl.dropbox.com/u/4524450/search.zip
Thanks a lot
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|