LoadPictures problem

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?