Question
Create movieClips with a for loop?
I'm having some trouble, as i'm a noob and still trying to
get the hang of object oriented programming.
I'm trying to create 6 movieClips, numbered thumb01_mc to thumb06_mc, and immediatly load into them images in the folder "media" and named "small01.jpg".
when i run this code, i get the error message:
**Error** Scene=Scene 1, layer=actions, frame=59:Line 144: Syntax error.
var thumb0+i+_mc:MovieClip = this.createEmptyMovieClip("thumb0"+i+,i);
can anyone tell me what i'm doing wrong?
I'm trying to create 6 movieClips, numbered thumb01_mc to thumb06_mc, and immediatly load into them images in the folder "media" and named "small01.jpg".
when i run this code, i get the error message:
**Error** Scene=Scene 1, layer=actions, frame=59:Line 144: Syntax error.
var thumb0+i+_mc:MovieClip = this.createEmptyMovieClip("thumb0"+i+,i);
can anyone tell me what i'm doing wrong?