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);