# Staying at fullscreen mode when 'Esc' key is pressed

**URL:** <https://forum.kirupa.com/t/staying-at-fullscreen-mode-when-esc-key-is-pressed/144174>\
**Category:** Uncategorized\
**Created:** [April 12, 2005, 11:55am UTC](https://forum.kirupa.com/t/staying-at-fullscreen-mode-when-esc-key-is-pressed/144174 "2005-04-12T11:55:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suntoucher](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@Suntoucher](https://forum.kirupa.com/u/Suntoucher)\
**Post date:** [April 12, 2005, 11:55am UTC](https://forum.kirupa.com/t/staying-at-fullscreen-mode-when-esc-key-is-pressed/144174/1 "2005-04-12T11:55:20Z")

</div>

Hi all, :cowboy:

I’m finishing a presentation in Flash MX. The presentation itself opens fullscreen and is zoomed at 100%. When a user presses the ‘Esc’ key a menu pops up asking: “Do you really want to quit?” along with with two buttons (“yes” and “no”). As far as this it’s doing what i want it to do.

But … as a side effect it also changes from fullscreen to windowed …

As a solution i did this:

```
 on (keyPress "&lt;Escape&gt;") {
     fscommand("fullscreen", "true");
 	_root.quit_menu_mc._visible = true;
 }

```

But then - for a brief moment - it shows the windowed presentation before going fullscreen again. Hmmm …

Any solutions to this?

I hope u guys (& girls) can help me out. Thx! :hr:
