# Need help with dynamic image loading

**URL:** https://forum.kirupa.com/t/need-help-with-dynamic-image-loading/289466
**Category:** flash
**Created:** [May 31, 2009, 2:04am UTC](https://forum.kirupa.com/t/need-help-with-dynamic-image-loading/289466 "2009-05-31T02:04:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![neoviper](https://avatars.discourse-cdn.com/v4/letter/n/e9bcb4/32.png) [@neoviper](https://forum.kirupa.com/u/neoviper)
#### Post date: [May 31, 2009, 2:04am UTC](https://forum.kirupa.com/t/need-help-with-dynamic-image-loading/289466/1 "2009-05-31T02:04:44Z")

</div>

I had a working file in actionscript 2, and to get used to actionscript 3, I decided to try to convert it. There were some other functions, and they all were a cinch to get working, but I had a side panel with a holder clip dynamically loading in, and then loading an image into that. The best way to think it was, I had a frame for the image that loaded, and then the image loaded into it. I’m looking for a way to do this in actionscript 3, and have gotten very close, but failed.

Here is the actionscript 3 code that is the problem.

```auto
var sideClipCount:int = 10;

function addSideClips(numberOfClips:int):void {
    var currentClip:MovieClip = new MovieClip;
    for (var i:int = 0; i < numberOfClips; i++) {
        var currentClip:clip = new clip();
        sidePanel.addChild(currentClip);
        clipImageLoader.load(new URLRequest (clipNumber* + ".jpg"))
        currentClip.imageHolder_mc.addChild(clipImageLoader);
        currentClip.x = 10
        currentClip.y = i*47
    }
}
addSideClips(sideClipCount);

```

It creates 10 holder clips in a side panel, and then tries to load images into them. It loads the holder clips just fine, and it loads a single picture into them, into the last one. I have no idea why, and that is the only thing stopping this file from fully working in AS3, help!
