Hey all, my menu bar and menus disappear if you refresh the page. Everything is dynamically positioned with AS using the code below. To see what I’m talking about go here then refresh the page in the browser. It also appears to do it when I navigate away and return.
//mouse listener to close menus
mLoc = new Object();
mLoc.onMouseMove = function () {
//register mouse position as globals for menus
_global.mX =_xmouse;
_global.mY =_ymouse;
};
//add listeners
Mouse.addListener(mLoc);
function init() {
var bgObj = new Object();
bgObj.onResize = function() {
position();
};
//sizing function
position = function(){
//background full size
bg._width = Stage.width;
bg._height = Stage.height;
bg._x = Stage.width*.5;
bg._y = Stage.height*.5;
//menus
home._y = (Stage.height-home._height) - 20;
mediation._y = home._y;
contact._y = home._y +23;
//menu bar super wide and bottom align
bar._width = Stage.width + 1000;
bar._height = Stage.height *.0675;
bar._y = home._y + 80 ;
//main window 90% wide 80% height and centered
main._width = Stage.width * .9;
main._height = Stage.height *.8;
main._x = Stage.width*.5;
main._y = Stage.height*.5;
}
Stage.scaleMode = "noScale";
Stage.align = "tl";
Stage.addListener(bgObj);
position();
}
init();
Any ideas? Oh and I’m running IE6 and the width/height of the movie is set to 100% using CSS.