# Positioning Problem

**URL:** <https://forum.kirupa.com/t/positioning-problem/275955>\
**Category:** Uncategorized\
**Created:** [November 20, 2008, 4:20pm UTC](https://forum.kirupa.com/t/positioning-problem/275955 "2008-11-20T16:20:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_Mo](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@J\_Mo](https://forum.kirupa.com/u/J_Mo)\
**Post date:** [November 20, 2008, 4:20pm UTC](https://forum.kirupa.com/t/positioning-problem/275955/1 "2008-11-20T16:20:43Z")

</div>

Hi,

I am using this actionscript to obtain full screen flash in AS2 but am having problems positioning mcs on the y axis (the x is no problem).

var stageListener:Object = new Object();  
stageListener.onResize = function() {  
position();  
};  
Stage.align = “BL”;  
Stage.scaleMode = “noScale”;  
Stage.addListener(stageListener);  
function position() {  
buttons.\_y = Stage.height;  
buttons.\_x = Stage.width;  
}  
position();

I am trying to get the mc “buttons” position in the top right of the browser window but I cant get the height value correct. When the width is used on its own it works perfectly.

HELP, I am v frustrated!!  
Cheers  
J\_Mo
