# Help me Obi Wan...your my only hope

**URL:** <https://forum.kirupa.com/t/help-me-obi-wan-your-my-only-hope/233135>\
**Category:** Uncategorized\
**Created:** [July 20, 2007, 1:20pm UTC](https://forum.kirupa.com/t/help-me-obi-wan-your-my-only-hope/233135 "2007-07-20T13:20:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gibry21](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gibry21](https://forum.kirupa.com/u/gibry21)\
**Post date:** [July 20, 2007, 1:20pm UTC](https://forum.kirupa.com/t/help-me-obi-wan-your-my-only-hope/233135/1 "2007-07-20T13:20:04Z")

</div>

I am still in desperate need of advice with my previous post regarding my scrolling agllery, please help. A new problem, I have created a background using a tiled bitmap, and as the screen gets scaled the flash movie stays centered and the background re-fills. However I have noticed that when it re fills I loose the tranparency effect of my bitmap, I think this may be because flash is simply re-filling onto of whats there, as when u refresh the browser it fixs the problem, click the link and scall up and down the window to understand better. I presume a simple fix would be some actionscript which refreshs the browser everytime the screen is scaled…is this possible? Any advice please guys.

import flash.display.BitmapData;  
shell.\_x = Stage.width /2;  
shell.\_y = Stage.height /2;  
var tile:BitmapData = BitmapData.loadBitmap (“tile”);  
function fillBG() {

this.beginBitmapFill(tile);  
this.moveTo(0,0);  
this.lineTo(Stage.width,0);  
this.lineTo(Stage.width,Stage.height);  
this.lineTo(0,Stage.height);  
this.lineTo(0,0);  
this.endFill;  
}  
fillBG();  
var stageL:Object = new Object();  
stageL.onResize = function(){

shell.\_x = Stage.width /2;  
shell.\_y = Stage.height /2;  
fillBG();  
}  
Stage.addListener(stageL);
