drj201
05-20-2008, 05:59 PM
Hello all...
My first post on this wonderful forum (I have searched this great resource a great deal before).
I have an FLV player that I have programmed in AS3. The player goes into fullscreen when you press a button.
I have an event listener on the button that changes the stage mode to FULL SCREEN. This act in turn is detected with an event listener on the stage that detects an event.RESIZE.
This all works fine. When you click the button in normal mode I go to full screen mode and vice versa. More importantly the button changes (i.e. I line another button in the place of the previous button using coordinates) in full screen and move it off screen in normal screen so I have a "go full screen" icon button in normal mode and a "back to normal mode" icon on full screen.
MY PROBLEM is... Using the button to go into full screen mode changes the button to the 'close full screen' icon as expected. If I use the close full screen button in full screen mode it changes back. All perfect. My problem however is if I exit the full screen mode using the escape key the button does not change back so I am guessing the event handler is not triggered. Is there a way to detect the event of exiting full screen mode using the escape key rather than a button? The event.RESIZE on the stage does not seem to do it...
Hope that makes sense.
Please help :cool:
My first post on this wonderful forum (I have searched this great resource a great deal before).
I have an FLV player that I have programmed in AS3. The player goes into fullscreen when you press a button.
I have an event listener on the button that changes the stage mode to FULL SCREEN. This act in turn is detected with an event listener on the stage that detects an event.RESIZE.
This all works fine. When you click the button in normal mode I go to full screen mode and vice versa. More importantly the button changes (i.e. I line another button in the place of the previous button using coordinates) in full screen and move it off screen in normal screen so I have a "go full screen" icon button in normal mode and a "back to normal mode" icon on full screen.
MY PROBLEM is... Using the button to go into full screen mode changes the button to the 'close full screen' icon as expected. If I use the close full screen button in full screen mode it changes back. All perfect. My problem however is if I exit the full screen mode using the escape key the button does not change back so I am guessing the event handler is not triggered. Is there a way to detect the event of exiting full screen mode using the escape key rather than a button? The event.RESIZE on the stage does not seem to do it...
Hope that makes sense.
Please help :cool: