I have five objects that have been pushed into the array allPieces. When all five objects are in the same spot - LocX,LocY -, I’d like to trace the message DONE. I tried the following…
for(var i in allPieces){
if((allPieces*.x == LocX)&&(allPieces*.y == LocY)){*
* trace("DONE");*
* }*
*}*
*… but what happens is that if any of the objects is at LocX,LocY, I get the DONE message. Can anyone tell me what I’m missing? Many thanks!