# Stage Problems

**URL:** <https://forum.kirupa.com/t/stage-problems/289119>\
**Category:** flash\
**Created:** [May 26, 2009, 4:49pm UTC](https://forum.kirupa.com/t/stage-problems/289119 "2009-05-26T16:49:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tigeralex](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@tigeralex](https://forum.kirupa.com/u/tigeralex)\
**Post date:** [May 26, 2009, 4:49pm UTC](https://forum.kirupa.com/t/stage-problems/289119/1 "2009-05-26T16:49:34Z")

</div>

Hi guys,

I have 2 movieClips which I want to make the height and width of the stage. It’s worked fine in the first instance (pun, wahey!) but when I add in the second (blackOver) it stops the buttons working and all sorts.

Ideas?

```auto

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

bgmain.x = 0;
bgmain.y = 0;
bgmain.width = stage.stageWidth;
bgmain.height = stage.stageHeight;

blackOver.x = 0;
blackOver.y = 0;
blackOver.width = stage.stageWidth;
blackOver.height = stage.stageHeight;

stage.addEventListener(Event.RESIZE, onStageResize);

function onStageResize(event:Event):void
{
    bgmain.width = stage.stageWidth;
    bgmain.height = stage.stageHeight;
      blackOver.width = stage.stageWidth;
    blackOver.height = stage.stageHeight;
}

```

Thanks guys!

Alex :hat:
