Stage Problems

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?


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: