Okay, so I pretty much got it working. The only problem I’m having is that it’s only full screen based off of the width. I want the picture to maintain it’s scale, so I need it to fill the height if necessary and cut the sides off of the picture.
You can see what I mean by clicking http://www.bettysitbon.com/dreamer/
Resize the browser so it’s a lot taller than it is wide and you’ll see what I mean. I want it to fit both height and width no matter which is taller. I’m sure it’s just something I missed in my AS, but I can’t find it. I’ve played around with it all morning and nothing.
// pic_mc is the movieclip that I used to load my full-screen background image.
function bgResize() {
pic_mc._width = Stage.width;
pic_mc._yscale = pic_mc._xscale;
if (pic_mc.height >= _yscale) {
pic_mc._x = (Stage.width)/2;
pic_mc._y = (Stage.height)/2;
}else{
pic_mc._height = Stage.height;
pic_mc._xscale = pic_mc._yscale;
pic_mc._x = (Stage.width)/2;
pic_mc._y = (Stage.height)/2;
}
}
bgResize();
Stage.align = "TL";
Stage.scaleMode = "noScale";
content_mc._x = Stage.width/2;
content_mc._y = Stage.height/2;
b_logo._y = Stage.height - 19;
my_listener = new Object();
my_listener.onResize = function() {
bgResize();
};
Stage.addListener(my_listener);
var stageL:Object = new Object();
stageL.onResize = function() {
fillBG();
cover._x = Stage.width / 2;
cover._y = Stage.height / 2;
b_logo._y = Stage.height - 19;
}
bgResize();
Stage.addListener(stageL);
Let me know if you find anything. Thanks for your help.