# How can I restrict the height of the footer

**URL:** https://forum.kirupa.com/t/how-can-i-restrict-the-height-of-the-footer/250620
**Category:** flash
**Created:** [January 31, 2008, 4:47am UTC](https://forum.kirupa.com/t/how-can-i-restrict-the-height-of-the-footer/250620 "2008-01-31T04:47:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gordon0](https://avatars.discourse-cdn.com/v4/letter/g/d6d6ee/32.png) [@gordon0](https://forum.kirupa.com/u/gordon0)
#### Post date: [January 31, 2008, 4:47am UTC](https://forum.kirupa.com/t/how-can-i-restrict-the-height-of-the-footer/250620/1 "2008-01-31T04:47:43Z")

</div>

Hi!  
I have used the below script to control the footer adjust with the screen, but don’t know how to restrict the footer go beyond certain height. Please help! :crying:

Stage.scaleMode = “noScale”;

Stage.align = “TL”;

function setStage ()  
{

```
var sw:Number = Stage.width;
var sh:Number = Stage.height;

footerMc._x = 2;

footerMc._y = sh - (footerMc._height + 10);

```

}

var stageListener:Object = new Object ();  
Stage.addListener (stageListener);  
stageListener.onResize = setStage;

setStage ();
