# Flash 8 AS2 symbol depth conflict

**URL:** <https://forum.kirupa.com/t/flash-8-as2-symbol-depth-conflict/329339>\
**Category:** flash\
**Created:** [August 15, 2012, 1:39pm UTC](https://forum.kirupa.com/t/flash-8-as2-symbol-depth-conflict/329339 "2012-08-15T13:39:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![regorica](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@regorica](https://forum.kirupa.com/u/regorica)\
**Post date:** [August 15, 2012, 1:39pm UTC](https://forum.kirupa.com/t/flash-8-as2-symbol-depth-conflict/329339/1 "2012-08-15T13:39:57Z")

</div>

[TABLE]  
[TR]  
[TD=“class: votecell”]

```
  [/TD]

```

[TD=“class: postcell”] I am using the following snippet to create a textured background.

```auto

tileBG = function () {

tile_width = 7.75;
tile_height = 7.75;

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(); 
  

```

The problem I am running in to is the pattern/teture is showing up on top of everything (I am guessing it’s because of this: getNextHighestDepth()). When I set a lower depth, say, 2 it fails because of the repeating effect, if I do 2+x it fails because there are about 8 layers above this layer which probably have some of the same depths being assigned.  
I am wondering if anyone has a solution for this, or if I can force my top layers (8 or so) to have a specific depth, say, 100+ or something like that.

[/TD]  
[/TR]  
[/TABLE]
