Id like to be able to change the frame on the movie clip slot1, slot2, slot3 and so forth. I want it to change one slot during the loop. (z variable)

how would i write this?

where the first run would need to target
slot1 slot[z+1]
and the second run would target
slot2 slot[z+1]
and so on.