# \[Flash 8\] help with loader\_Mc an dynamically loading jpgs

**URL:** <https://forum.kirupa.com/t/flash-8-help-with-loader-mc-an-dynamically-loading-jpgs/178911>\
**Category:** flash\
**Created:** [February 15, 2006, 9:12am UTC](https://forum.kirupa.com/t/flash-8-help-with-loader-mc-an-dynamically-loading-jpgs/178911 "2006-02-15T09:12:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikee106](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@mikee106](https://forum.kirupa.com/u/mikee106)\
**Post date:** [February 15, 2006, 9:12am UTC](https://forum.kirupa.com/t/flash-8-help-with-loader-mc-an-dynamically-loading-jpgs/178911/1 "2006-02-15T09:12:16Z")

</div>

Hello, I am trying to dynamically load .jpgs into an Mc, and have this code on the loader clip

```auto
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(this);

function onLoadInit(_mc:MovieClip) {
    gotoAndPlay(2);
};

loader.loadClip("img/fan.jpg", _root.jpg_holder);

```

it works fine but i want to make it so it works for all the .jpgs i am trying to load not just “img/fan.jpg”. is there someway to do this easily? i´m sure there´s a simple solution but just has´nt hit me yet.

cheers if you can help.

mike
