API and masking - looping problem

g’day everyone
sorry to wake you from last night’s hangover
but i’m having a hopefully simple prob
got that code (courtesy of scotty ) using API to go thru a couple of movieclips

is it possible to alter the code so the mc’s “loop”
(after nr.6 is revealed nr.1 is “on top again” ) ?

thx for help

file attached is mx2004