# Tiling background

**URL:** <https://forum.kirupa.com/t/tiling-background/48067>\
**Category:** Uncategorized\
**Created:** [April 9, 2004, 6:24pm UTC](https://forum.kirupa.com/t/tiling-background/48067 "2004-04-09T18:24:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raziel](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@Raziel](https://forum.kirupa.com/u/Raziel)\
**Post date:** [April 9, 2004, 6:24pm UTC](https://forum.kirupa.com/t/tiling-background/48067/1 "2004-04-09T18:24:09Z")

</div>

got this script of my uncle but he failed to tell me what i should call the background mc or what to change so that i can adapt it (lucky bastard went to japan on business meeting before i could ask -\_-)

```auto

    var intTilesHorizontal = 15;
    var intTilesVertical = 15;
    var i = 0;
    while (i < intTilesHorizontal) {
        var j = 0;
        while (j < intTilesVertical) {
            var strName = ((("clipTileX" + i) + "Y") + j);
            var intDepth = ((100 * i) + j);
            clipBackground.attachMovie("ClipTile", strName, intDepth);
            clipBackground[strName]._x = clipBackground[strName]._width * i;
            clipBackground[strName]._y = clipBackground[strName]._height * j;
            j++;
        }
        i++;
    }

```

his site is [front72.com](http://front72.com) ^^

any help is appreciated
