# Errr!.. Cant figure this out? (x,y) issue

**URL:** https://forum.kirupa.com/t/errr-cant-figure-this-out-x-y-issue/231687
**Category:** flash
**Created:** [July 6, 2007, 6:25pm UTC](https://forum.kirupa.com/t/errr-cant-figure-this-out-x-y-issue/231687 "2007-07-06T18:25:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![haider](https://avatars.discourse-cdn.com/v4/letter/h/48db29/32.png) [@haider](https://forum.kirupa.com/u/haider)
#### Post date: [July 6, 2007, 6:25pm UTC](https://forum.kirupa.com/t/errr-cant-figure-this-out-x-y-issue/231687/1 "2007-07-06T18:25:01Z")

</div>

Hi, I have stage elements in my site showing up where they are supposed to with a FLUID Layout using the following code. Though there seems to be this strange gap all the way around my site in the html page. I want the horizontal bar to be attached to the top like in the [www.eepmon.com](http://www.eepmon.com) flash site. Anyone know why mine is not working?

ps. the shinny black band in the attached pic is called “topstretch” in the code below.

Thanks.

// \*\*\*Stage aligned top left  
Stage.align = “TL”;  
// \*\*\* Stop the stage from scaling with the browser window.  
Stage.scaleMode = “noScale”;  
stop ();  
// initiate postitions and scaling values for objects  
fluid.\_x = (Stage.width)/2  
fluid.\_y = Stage.height/2  
bottomstretch.\_height = Stage.height;  
stagestretch.\_height = Stage.height;  
stagestretch.\_width = Stage.width;  
topstretch.\_width = Stage.width;  
stagestretch.\_x=0;  
stagestretch.\_y=0;  
tutoriobutton.\_x = Stage.width - tutoriobutton.\_width  
// end initial position setting

//create a listner that checks to see if the browser window is resized  
sizeListener = new Object();  
sizeListener.onResize = function() {  
// change movieclip properties when the window is resized.  
topstretch.\_width = Stage.width;  
fluid.\_y = Stage.height/2;  
fluid.\_x = (Stage.width)/2;  
bottomstretch.\_height = Stage.height;  
stagestretch.\_height = Stage.height;  
stagestretch.\_width = Stage.width;  
//_note_ 200 is the width of the left column  
tutoriobutton.\_x = Stage.width - tutoriobutton.\_width  
};  
Stage.addListener(sizeListener);
