# Easy AS question about full browser flash

**URL:** <https://forum.kirupa.com/t/easy-as-question-about-full-browser-flash/217903>\
**Category:** Uncategorized\
**Created:** [March 2, 2007, 8:47pm UTC](https://forum.kirupa.com/t/easy-as-question-about-full-browser-flash/217903 "2007-03-02T20:47:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigimaginations](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bigimaginations/32/3200_2.png) [@bigimaginations](https://forum.kirupa.com/u/bigimaginations)\
**Post date:** [March 2, 2007, 8:47pm UTC](https://forum.kirupa.com/t/easy-as-question-about-full-browser-flash/217903/1 "2007-03-02T20:47:48Z")

</div>

I got my site pretty much complete and I’m having one problem. When the site first loads, the objects aren’t in their correct position.

After I resize it and resize it back it’s fine, but it’s not putting everything in the correct place on the initial loading of the page. I’m not sure why it’s happening, but I’ve been staring at it for days trying to figure it out.

My AS is:

```auto

Stage.align = "TL";

Stage.scaleMode = "noScale";

navbar._width = Stage.width;
title_mc._x=201;
bg._y = Stage.height;
tag._x = (Stage.width - 2);
tag._y = (Stage.height - 2);
piero_logo._x = Stage.width;
progressBar._x = (Stage.width - 10);
progressBar._y = (Stage.height - 10);
news_mc._x = (Stage.width - 200);
contact_mc._x = Stage.width/2;
contact_mc._y = Stage.height/2;
about_mc._x = Stage.width/2;
about_mc._y = Stage.height/2;
services_mc._x = Stage.width/2;
services_mc._y = Stage.height/2;
// end initial position setting

sizeListener = new Object();
sizeListener.onResize = function() {

    navbar._width = Stage.width;
    bg._y = Stage.height;
    tag._x = (Stage.width - 2);
    tag._y = (Stage.height - 2);
    piero_logo._x = Stage.width;
    news_mc._x = (Stage.width - 200);
    contact_mc._x = Stage.width/2;
    contact_mc._y = Stage.height/2;
    about_mc._x = Stage.width/2;
    about_mc._y = Stage.height/2;
    services_mc._x = Stage.width/2;
    services_mc._y = Stage.height/2;
    
};
Stage.addListener(sizeListener);

```

If you can let me know where I went wrong that would be incredibly helpful. Thanks for your help.

Sam
