# Dynamic Tiling Backgrounds

**URL:** <https://forum.kirupa.com/t/dynamic-tiling-backgrounds/56233>\
**Category:** flash\
**Created:** [July 1, 2004, 8:27pm UTC](https://forum.kirupa.com/t/dynamic-tiling-backgrounds/56233 "2004-07-01T20:27:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![imvain2](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/imvain2/32/620_2.png) [@imvain2](https://forum.kirupa.com/u/imvain2)\
**Post date:** [July 1, 2004, 8:27pm UTC](https://forum.kirupa.com/t/dynamic-tiling-backgrounds/56233/1 "2004-07-01T20:27:29Z")

</div>

I would like to have a layer that tiles an image, similar to windows desktop tiling, I found a tutorial on kirupa but it the tiling shrinks the bitmap down and tiles in at a really tiny size. I will be setting the width of the Flash Project to 100% of the screen.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 2, 2004, 8:22pm UTC](https://forum.kirupa.com/t/dynamic-tiling-backgrounds/56233/2 "2004-07-02T20:22:49Z")

</div>

can someone help me figure this out?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 2, 2004, 8:23pm UTC](https://forum.kirupa.com/t/dynamic-tiling-backgrounds/56233/3 "2004-07-02T20:23:56Z")

</div>

do you have any code?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 6, 2004, 2:44pm UTC](https://forum.kirupa.com/t/dynamic-tiling-backgrounds/56233/4 "2004-07-06T14:44:54Z")

</div>

Put this in a keyframe with your tile. Put the tile in the upper left hand corner. Name it ball in this instance.

onEnterFrame = function(load) {  
var maxNum = 10;  
var num = 0;  
for (a=1; a\<=maxNum; a++) {  
for (b=1; b\<=maxNum; b++) {  
\_root.movie.ball.duplicateMovieClip(“ball”+num, num);  
\_root.movie[“ball”+num].\_x = a_95;  
\_root.movie[“ball”+num].\_y = b_95;  
num++;  
setProperty(ball, \_visible, 0);  
}  
}

}  
gotoAndStop(2);
