# Noob problems

**URL:** <https://forum.kirupa.com/t/noob-problems/250247>\
**Category:** Uncategorized\
**Created:** [January 27, 2008, 5:10pm UTC](https://forum.kirupa.com/t/noob-problems/250247 "2008-01-27T17:10:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antimony](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@Antimony](https://forum.kirupa.com/u/Antimony)\
**Post date:** [January 27, 2008, 5:10pm UTC](https://forum.kirupa.com/t/noob-problems/250247/1 "2008-01-27T17:10:29Z")

</div>

Hi all. I’m no novice to Flash, but this has just got me completely stumped. I’m trying to make a movieclip that is always the width of the stage, and always vertically centered, using an onEnterFrame function. However…it’s just refusing to work. I’ve looked at it over and over and can’t figure out why it just won’t resize/go to the correct co-ordinates.

I’ve attached the .fla so you can have a peek. Please help!

The code I’m confused about is:

stop();  
Stage.scaleMode = “noscale”;

var resizeListener:Object = new Object();  
Stage.addListener(resizeListener);

setBarPosition = function(){  
setProperty(bars\_mc, \_width, Stage.width);  
setProperty(bars\_mc, \_x, 0);  
setProperty(bars\_mc, \_y, Stage.height/2);  
}  
setBarPosition();

resizeListener.onResize = function(){  
setBarPosition();  
}

///////////////////////////////////////////////////////////////////////////////////////////  
//EDIT - No worries, I found out what was wrong. I changed it to:

setBarPosition = function(){  
setProperty(bars\_mc, \_width, Stage.width);  
setProperty(bars\_mc, \_x, -(Math.round((Stage.width - 800)/2)));  
setProperty(bars\_mc, \_y, 300);  
}

For anyone that is trying to do full browser flash, I HEAVILY recommend [http://www.genericwebaddress.com/articles-flash/fullscreen-flash-movie-tutorial-02.html](http://www.genericwebaddress.com/articles-flash/fullscreen-flash-movie-tutorial-02.html)  
Apparently when Flash is set to ‘noScale’ the co-ordinate system is a bit…different. So yeah, have a read. =)
