Skip to main content
Inspiring
May 6, 2006
Question

foor loop question

  • May 6, 2006
  • 1 reply
  • 159 views
I have a problem with the for loop.
I want to be able to look for a variable inside of an array, so I do for loop.
I want it so that Flash does the search first through the entire array for that object, then tell me the result. If found then do this, if not then do that.

however, Flash keeps giving me a report on every element of an array.
For example..
looking in array[0].. output: CAN'T FIND IT
looking in array[1].. output: CAN'T FIND IT
looking in array[2].. output: CAN'T FIND IT
...
...
I want it so that you know.. just do your job finish the search then give me just one result.

Did I do something wrong with my script?

thanks
This topic has been closed for replies.

1 reply

The_350ZAuthor
Inspiring
May 6, 2006
ah i got it