# Duplicate Background - tile position

**URL:** <https://forum.kirupa.com/t/duplicate-background-tile-position/192191>\
**Category:** flash\
**Created:** [June 26, 2006, 9:57pm UTC](https://forum.kirupa.com/t/duplicate-background-tile-position/192191 "2006-06-26T21:57:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcguyver82](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@mcguyver82](https://forum.kirupa.com/u/mcguyver82)\
**Post date:** [June 26, 2006, 9:57pm UTC](https://forum.kirupa.com/t/duplicate-background-tile-position/192191/1 "2006-06-26T21:57:05Z")

</div>

I was reading the Duplicate Background tutorial ([http://www.kirupa.com/developer/mx2004/duplicatebackground.htm](http://www.kirupa.com/developer/mx2004/duplicatebackground.htm)) on how to make an image tile in the background of a SWF tile. I am trying to figure out how to position that tile so that it is centered instead of starting at the top left. I realize it must be in this part of the code:

bg.\_x = tile\_width_x;  
bg.\_y = tile\_height_y;

but i’m not real sure on how to make it actually work. Any help would be much appreciated.  
Thanks,  
Aaron
