1 Reply Latest reply on May 5, 2006 6:32 PM by The_350Z

    foor loop question

    The_350Z
      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