Groups | Blog | Home
all groups > flash actionscript > july 2007 >

flash actionscript : Fullscreen, detect when leaving



Matt Blubaugh
7/30/2007 6:02:08 PM
I was wondering if someone knew how to detect when Flash exits fullscreen mode
via the escape key?

I have this video app I'm developing that scales any video inputted to be full
screen, as well as appropriate resizing of the transport. I added in a stage
listener that updates a text field on screen to say when the player has entered
fullscreen and when it is in normal mode, but it does not update when the
escape key is pressed.

What do I need to do differently to detect exiting fullscreen mode via the
escape key and not my provided button?

Here is my project:
http://sostv.com/fscreen/fullpage2.html?vid=http://www.sostv.com/flv/flv2_donato
sMozzarella.flv
dzedward
7/30/2007 6:22:53 PM
Matt Blubaugh
7/30/2007 6:37:45 PM
Well, I gave that a shot but it requires the escape key to be pressed twice for
it to detect any change... the first time it exits fullscreen mode, the second
time it actually calls the function I specify to swap my min/max buttons and
reset the stage scaleMode to noScale.

Any other ideas?

I know this can be done, as I've seen it, for example, with GameSpot's new
Flash video player. I'm just at a loss as for it is done.
AddThis Social Bookmark Button