# How do I change this code to "no tiled" image?

**URL:** <https://forum.kirupa.com/t/how-do-i-change-this-code-to-no-tiled-image/298623>\
**Category:** flash\
**Created:** [October 22, 2009, 1:30am UTC](https://forum.kirupa.com/t/how-do-i-change-this-code-to-no-tiled-image/298623 "2009-10-22T01:30:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![elahferah](https://avatars.discourse-cdn.com/v4/letter/e/f17d59/32.png) [@elahferah](https://forum.kirupa.com/u/elahferah)\
**Post date:** [October 22, 2009, 1:30am UTC](https://forum.kirupa.com/t/how-do-i-change-this-code-to-no-tiled-image/298623/1 "2009-10-22T01:30:34Z")

</div>

Hi guys,  
Im all new to this and bought a template to make a webpage with fullscreen image in the back. Trouble is the image in the template calls up a separate Background .swf where the image is tiled in the AS2 code.  
I just want to make the page read a full screen image “no tiled”.

Here is the code:

Stage.scaleMode = “noScale”;  
Stage.align = “TL”;  
//  
myListenerload = new Object ();  
myListenerload.onResize = function () {  
//  
tileBG ();  
};  
Stage.addListener (myListenerload);  
myListenerload.onResize ();  
//  
function tileBG () {  
//  
tile\_width = 200;  
tile\_height = 200;  
//  
x\_max = Stage.width / tile\_width;  
y\_max = Stage.height / tile\_height;  
//  
for (x = 0; x \< x\_max; x++) {  
for (y = 0; y \< y\_max; y++) {  
bg = this.attachMovie (“fill\_image”, “bg” + x + y, this.getNextHighestDepth ());  
bg.\_x = tile\_width \* x;  
bg.\_y = tile\_height \* y;  
}  
}  
//  
filter = this.attachMovie (“filter\_for\_image”, “filter”, this.getNextHighestDepth ());  
filter.\_x = 0;  
filter.\_y = 0;  
filter.\_width = Stage.width;  
filter.\_height = Stage.height;  
}  
//  
tileBG ();
