Loop logic problem

Hi

i currently having a problem of looping in flash. When i try to use an “if else” to compare 2 arrays like

if (array1* == array2*) {}  else{}

, it only check the one that has similar array. Since im not sure if its understood , its something like this now.

However, i want it to be able to check through every element in the second array. Like…

Im sure theres codes for this…unless im much mistaken but i could not think of it.