# LoadPictures problem

**URL:** <https://forum.kirupa.com/t/loadpictures-problem/31277>\
**Category:** flash\
**Created:** [September 20, 2003, 3:34pm UTC](https://forum.kirupa.com/t/loadpictures-problem/31277 "2003-09-20T15:34:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Coppertop](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Coppertop](https://forum.kirupa.com/u/Coppertop)\
**Post date:** [September 20, 2003, 3:34pm UTC](https://forum.kirupa.com/t/loadpictures-problem/31277/1 "2003-09-20T15:34:14Z")

</div>

Alright,

I have 9 pictures numbered 0-8. I want a movieclip to load the picture that corresponds with a variable. here’s the catch. Since I want to be able to change the total loadable(?), I created a txt file with a variable containing the total number of pics. so, what happens is the movie loads the variable (that works, don’t worry) but somewhere along the line, it stops working:  
[AS]onClipEvent (enterFrame) {  
this.loadMovie(String(“pixelmes/” add num add “.jpg”), this);  
}[/AS]  
now, I know the trouble lies here, because everything else works.

any ideas what I’m doing wrong?
