# Full Screen Handler

**URL:** <https://forum.kirupa.com/t/full-screen-handler/279798>\
**Category:** flash\
**Created:** [January 19, 2009, 2:44pm UTC](https://forum.kirupa.com/t/full-screen-handler/279798 "2009-01-19T14:44:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OML](https://avatars.discourse-cdn.com/v4/letter/o/5e9695/32.png) [@OML](https://forum.kirupa.com/u/OML)\
**Post date:** [January 19, 2009, 2:44pm UTC](https://forum.kirupa.com/t/full-screen-handler/279798/1 "2009-01-19T14:44:34Z")

</div>

Hello,

I am trying to catch the FullScreenEvent when the user enters or exits full-screen mode.  
In the following code, I just wanted to see that the event is handled, but unfortunately no event is received when I enter full-screen mode from the flash player.

```auto

stage.addEventListener(FullScreenEvent.FULL_SCREEN, FullScreenHandler);

protected function FullScreenHandler(fsEvent:FullScreenEvent):void
{
            var s:Sprite = new Sprite(); 
            s.graphics.beginFill(0xffffff,1);
            s.graphics.drawRect(10,10,30,30);
            s.graphics.endFill();

            if (stage.displayState == StageDisplayState.FULL_SCREEN)
            {
                addChild(s);
            }
            else if (stage.displayState == StageDisplayState.NORMAL)
            {
                removeChild(s);
            }
}

```

Am I doing something wrong, or maybe the FullScreenEvent is never sent when toggling full-screen mode from a flash player?

Thanks,  
OML
