# onFullScreen not called

**URL:** <https://forum.kirupa.com/t/onfullscreen-not-called/242855>\
**Category:** Uncategorized\
**Created:** [October 31, 2007, 1:03am UTC](https://forum.kirupa.com/t/onfullscreen-not-called/242855 "2007-10-31T01:03:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![omplistic](https://avatars.discourse-cdn.com/v4/letter/o/e47c2d/32.png) [@omplistic](https://forum.kirupa.com/u/omplistic)\
**Post date:** [October 31, 2007, 1:03am UTC](https://forum.kirupa.com/t/onfullscreen-not-called/242855/1 "2007-10-31T01:03:11Z")

</div>

Hey,

I have a small problem.

The onFullscreen is not called when hitting ESC or pressing a exitFullScreen() or enterFullScreen() from a button (the button’s work like they should).

```auto

function alertBox(Title, Msg){
    alertbox.Title.text = Title;
    alertbox.Msg.text = Msg;
    alertbox._x = 298;
    alertbox._y = 200;
    alertbox._visible = true;
}
alertbox._visible = false;

function goFullScreen()
{
   Stage["displayState"] = "fullScreen";
}
function exitFullScreen()
{
   Stage["displayState"] = "normal";
}

EventListener.onFullScreen = function(bFull:Boolean){alertBox("Fullscreen","Is fallscreen = "+bFull);};
Stage.addListener( EventListener );

```

I have tried thing as a flash 8 or 9 project…

Any help would be much [SIZE=-1]appreciated[/SIZE]!

Thanks.
