# \[Flash CS4 AS2\] Stage too small/please resize message - please help!

**URL:** <https://forum.kirupa.com/t/flash-cs4-as2-stage-too-small-please-resize-message-please-help/293787>\
**Category:** flash\
**Created:** [August 3, 2009, 10:24pm UTC](https://forum.kirupa.com/t/flash-cs4-as2-stage-too-small-please-resize-message-please-help/293787 "2009-08-03T22:24:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KaH](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@KaH](https://forum.kirupa.com/u/KaH)\
**Post date:** [August 3, 2009, 10:24pm UTC](https://forum.kirupa.com/t/flash-cs4-as2-stage-too-small-please-resize-message-please-help/293787/1 "2009-08-03T22:24:44Z")

</div>

I apologize for being completely new to Flash - the solution to this question may be really obvious, but I’m missing it. I’m trying to create an effect similar to the one on [http://www.ff0000.com/](http://www.ff0000.com/) when the browser window is too small - a message appears and asks the viewer to increase the window size.

I thought this would do it, but it doesn’t seem to be working:

```auto
var stageListener:Object=new Object();
stageListener.onResize=function(){
    toosmall();
};

Stage.align="TL";
Stage.scaleMode="noScale";
Stage.addListener(stageListener);

function toosmall() {
            if (stage.stageWidth < 600 || stage.stageHeight < 600) {
                stuff._alpha = 0;
                stuff2._alpha = 100;
            }

            else
            {
                stuff._alpha = 100;
                stuff2._alpha = 0;
            }
}
toosmall();

```

Any help would be greatly appreciated- this is driving me crazy! Thank you!
