I wasted several hours yesterday while trying to change the depths of a couple of MovieClips stored in an array:As I hadn't used swapDepths() before, I assumed I was doing something wrong with it. But nothing seemed to work - their original depths remained unchanged. Then, just in case, I changed to a normal for loop:Code:for(i in bug) { bug[i].swapDepths(4000+i); trace(i + " depth " + bug[i].getDepth()); }And suddenly everything works like expected... Can someone please explain this?Code:for(i=0; i<no_bugs; i++) { bug[i].swapDepths(4000+i); trace(i + " depth " + bug[i].getDepth()); }