Staying at fullscreen mode when 'Esc' key is pressed

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 "<Escape>") {
     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: