Hello Everyone I have hit a wall.
I have a re-size function on this website im working on for my BG to scale, my content to stay centered, and my nav bar to always stay top right. I need some sort of if statement saying if my navagation is 200px from the left it needs to stop moving. I hope that makes since.
Any help would be great. Thanks
Here is my AS
Stage.scaleMode = "noScale";
Stage.align = "TL";
function fillBG() {
background_mc._width = Stage.width;
background_mc._x = Stage.width/2;
}
function centercontent() {
splash_mc._x = Stage.width/2;
}
function navAlign() {
navagation_container_mc._x = Stage.width;
}
navAlign();
centercontent();
fillBG();
var stageL:Object = new Object();
stageL.onResize = function() {
fillBG();
centercontent();
navAlign();
};
Stage.addListener(stageL);