# Items positioned with AS disappear on refresh

**URL:** https://forum.kirupa.com/t/items-positioned-with-as-disappear-on-refresh/73096
**Category:** Uncategorized
**Created:** [December 13, 2004, 1:12am UTC](https://forum.kirupa.com/t/items-positioned-with-as-disappear-on-refresh/73096 "2004-12-13T01:12:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ivanatinkel](https://avatars.discourse-cdn.com/v4/letter/i/a6a055/32.png) [@ivanatinkel](https://forum.kirupa.com/u/ivanatinkel)
#### Post date: [December 13, 2004, 1:12am UTC](https://forum.kirupa.com/t/items-positioned-with-as-disappear-on-refresh/73096/1 "2004-12-13T01:12:15Z")

</div>

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](http://www.aronduby.com/site.html) then refresh the page in the browser. It also appears to do it when I navigate away and return.

```auto
 
 
//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.
