# Tiling full screen resizable background! Help

**URL:** <https://forum.kirupa.com/t/tiling-full-screen-resizable-background-help/191459>\
**Category:** Uncategorized\
**Created:** [June 20, 2006, 5:56pm UTC](https://forum.kirupa.com/t/tiling-full-screen-resizable-background-help/191459 "2006-06-20T17:56:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FedEx](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@FedEx](https://forum.kirupa.com/u/FedEx)\
**Post date:** [June 20, 2006, 5:56pm UTC](https://forum.kirupa.com/t/tiling-full-screen-resizable-background-help/191459/1 "2006-06-20T17:56:55Z")

</div>

Im using the following script for a full screen bkg tile:

[COLOR=DarkRed]tileBG = function () {

tile\_width = 30;  
tile\_height = 30;  
//  
x\_max = Math.round(Stage.width/tile\_width);  
y\_max = Math.round(Stage.height/tile\_height);  
trace(x\_max);  
trace(y\_max);  
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();[/COLOR]

As Kirupa tutorial [COLOR=Navy][http://www.kirupa.com/developer/mx2004/duplicatebackground.htm[/COLOR]](http://www.kirupa.com/developer/mx2004/duplicatebackground.htm%5B/COLOR%5D),  
[COLOR=Gray](It is for Flash MX 2004 does it changes for Flash 8?)[/COLOR]  
Now some issues:  
1- When the backround is sampled it comes up due to [COLOR=Red]this.getNextHighestDepth() [COLOR=Black]and covers the other animation (im not using levels)[/COLOR]  
[COLOR=Black]2- How do I add a listener to this that onResize expands the tile to the new stage size.

Well if someone could help!!  
thx to all…  
[/COLOR][/COLOR]Ive been braking mi mind for the whole morning, help is very welcomed !!🙂
