Hello, I have seen the tutorial on how to create a repeating Background on Kirupa. I need not a background but a banner only that has a repeating image and have modified the code provided in the tutorial to make it. The problem is that when the browser is resized, the repeating image doesn’t stay to the left side and top of the movie. How do I make that happen??? I want it to stay at the top of the screen all the time no matter how big the browser window is. Please help someone if you can! I need help. My modified code is below.
stop();
Stage.scaleMode = “noScale”;
//------------------------------------------
//------------------------------------------
tileBG = function () {
tile_width = 5;
//
x_max = Math.round(Stage.width/tile_width);
trace(x_max);
for (x=0; + x<=x_max; x++) {
bg = _root.attachMovie(“topbar2”, “bg”+x, this.getNextHighestDepth());
bg._x = tile_width*x;
}
};
tileBG();
var resizeListener:Object = new Object();
Stage.addListener(resizeListener);
resizeListener.onResize = function() {
tileBG();
};
Please help someone… Thanks!