This content has been marked as final. Show 4 replies
you shouldn't need any code to return from fullscreen using the escape key.
You're right, sorry, I should have made myself more clear.
Part of the problem is that I have a max/min button but when pressing escape it doesn't swap the visibility of the two unless it is pressed twice. One press exits full screen, but I don't understand why it won't fire my function until it is pressed again.
I have seen flash video players on sites such as gamespot.com and gamevideos.com that have buttons for full screen as well, and they change immediately upon exiting full screen via the escape key.
The fullscreen exit presumably 'cancels' the propagation of the escape key to the Key object...
I would be inclined to use the stage listener:
Thanks GWD, the stage listener fixed my problem!