PDA

View Full Version : stage help



g5604
May 7th, 2005, 04:36 PM
Hi,

i am trying to scale a background image to the size of the browser window. heres my code. for some reason it does not fill the entire stage, any ideas?

Stage.scaleMode = "noScale";
Stage.align = "TL";

background_mc._width =Stage.width
background_mc._height =Stage.height

background_mc.onResize = function() {
background_mc._width = Stage.width
background_mc._height = Stage.height

}

Stage.addListener(background_mc);

cheers,
G

rhamej
May 7th, 2005, 11:05 PM
Code is fine. Get rid of the margins in the html ;)