# For loops problem! Help!

**URL:** https://forum.kirupa.com/t/for-loops-problem-help/317232
**Category:** flash
**Created:** [December 14, 2010, 2:50pm UTC](https://forum.kirupa.com/t/for-loops-problem-help/317232 "2010-12-14T14:50:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![calyston00](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@calyston00](https://forum.kirupa.com/u/calyston00)
#### Post date: [December 14, 2010, 2:50pm UTC](https://forum.kirupa.com/t/for-loops-problem-help/317232/1 "2010-12-14T14:50:40Z")

</div>

Hi everyone!

Ok i’m really a sucker at looping and I really need help and i’m also real noob!!

Ok let me explain I got a MovieClip called ImagesHolder with the linkage name Images with 5 frames in it each one with a différent images in it. What I want is to be able to put 5 instances of the Mc and each one at 25 pixels intervals on the x and that each instances would be a differents frames of ImagesHolder.

Here I got so far (and thats not really far!) :

for(var i:int=0;i\<5;i++)  
{  
var images1:IHolder=new IHolder();  
this.x+=25; //this not working!!!  
this.addChild(images1);  
this.gotoAndStop(currentFrame+1);  
}

any help would be really apreciated!!!
