# API and masking - looping problem

**URL:** <https://forum.kirupa.com/t/api-and-masking-looping-problem/177714>\
**Category:** flash\
**Created:** [February 4, 2006, 2:43pm UTC](https://forum.kirupa.com/t/api-and-masking-looping-problem/177714 "2006-02-04T14:43:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ostmalm](https://avatars.discourse-cdn.com/v4/letter/o/dfb087/32.png) [@ostmalm](https://forum.kirupa.com/u/ostmalm)\
**Post date:** [February 4, 2006, 2:43pm UTC](https://forum.kirupa.com/t/api-and-masking-looping-problem/177714/1 "2006-02-04T14:43:59Z")

</div>

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
