# Calling function when closing fullScreen

**URL:** <https://forum.kirupa.com/t/calling-function-when-closing-fullscreen/243502>\
**Category:** Uncategorized\
**Created:** [November 7, 2007, 6:03pm UTC](https://forum.kirupa.com/t/calling-function-when-closing-fullscreen/243502 "2007-11-07T18:03:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bfaubion](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@bfaubion](https://forum.kirupa.com/u/bfaubion)\
**Post date:** [November 7, 2007, 6:03pm UTC](https://forum.kirupa.com/t/calling-function-when-closing-fullscreen/243502/1 "2007-11-07T18:03:34Z")

</div>

Hi All, i come here all the time looking for answers and its a great resource… but i haven’t found a solution yet for this one…  
I have a .swf which uses the Stage[“displayState”] = “fullScreen” functionality, it works like its suppose to except for when i close full screen with the escape key. i have a listener setup(stageListen.onFullScreen = function) so that when it goes to full screen it resizes some of my items on the stage, however I can’t find a listener for when the stage goes back to normal. I’ve tried adding an escape key listener, but since that is set for individual players, it’s not reliable. I also, tried the Stage onResize listener, but no worky. does anyone have suggestions?

thanks, Ben
