Below is the code i’m using to load a number of pictures.
_global.Xpos = 45;
// This loop creates boxes the hold pictures, then loads them into a box.
for (y = 0; y < _global.pictures; y++){
//output.text = "pic" + y + ".jpg"; //used in testing
// Creates a number of boxes to hold each of the pictures.
_root.photoArea.duplicateMovieClip("box" + y, y);
// Places the boxes with no pictures in them on stage
if(y < 1){
setProperty("box" + y,_x, _global.xPos);
setProperty("box" + y,_y, 39)
_global.xPos = 46
}else{
setProperty("box" + y,_x, _global.xPos += 89);
setProperty("box" + y,_y, 39)
}
// load the jpeg with the number of y into the box with the number of y
//_root.photoArea["box" + y].loadMovie("pic" + y + ".jpg");
//loadMovie("000.jpg", "box" + y);
}
//for (x = 0; x < _global.pictures; x++){
//_root.photoArea["box" + x].loadMovie("pic" + x + ".jpg");
//output.text = "pic" + x + ".jpg";
//}
I used the two lines that follow independently.
_root.photoArea["box" + y].loadMovie("pic" + y + ".jpg");
and
loadMovie("000.jpg", "box" + y);
When using “_root…” the areas are displayed without the pictures in them, when using “loadMovie…” the areas don’t even show up. I tried moving them to a separate for loop, however that didn’t change anything. Does anyone have any ideas?