Hey
I’ve coded a background using a duplicate movie method on a small jpg file.
Problem is, with the code i have used, i cant make my background have the LOWEST depth so that everything else in my flash movie is ON TOP of it.
Here is the code:
tileBG = function () {
tile_width = 15;
tile_height = 15;
//
x_max = Math.round(Stage.width/tile_width);
y_max = Math.round(Stage.height/tile_height);
for (x=0; x<=x_max; x++) {
for (y=0; y<=y_max; y++) {
bg = _root.attachMovie("square", "bg"+x+y, this.getNextHighestDepth());
bg._x = tile_width*x;
bg._y = tile_height*y;
}
}
;
};
tileBG();
I’m pretty sure its something to do with the
bg = _root.attachMovie(“square”, “bg”+x+y, this.getNextHighestDepth());
or the bg movieclip itself but i cant get it right, hope someone can get me on the right path.
Cheers
mrwilliby