I have a problem with searching for strings in an array. I want to search for one word and if it exists, I want to trace the position of the string in the array.
I believe it should be something like this:
if (myArray contains "11111111") {
trace("*position*")
} else {
trace("cant find it");
}
What kind of syntax are you using there and have you even checked the documentation of the
Arrayclass? That should be the first thing you check always, as there is a pretty straightforward method for it: