# Action Script 2 Loop

**URL:** <https://forum.kirupa.com/t/action-script-2-loop/325649>\
**Category:** flash\
**Created:** [October 27, 2011, 5:23pm UTC](https://forum.kirupa.com/t/action-script-2-loop/325649 "2011-10-27T17:23:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doctor\_Dalek](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@Doctor\_Dalek](https://forum.kirupa.com/u/Doctor_Dalek)\
**Post date:** [October 27, 2011, 5:23pm UTC](https://forum.kirupa.com/t/action-script-2-loop/325649/1 "2011-10-27T17:23:15Z")

</div>

I am trying to make a for loop that targets preexisting movie clips called under1, under2, etc.  
my code for this event is:

for (i=1; i\<55; i++) {  
e = Math.ceil(Math.random()\*(5+\_root.angrer));  
\_root.under+i.gotoAndStop(e);

does anyone know how to get it working?
