Here is a quick post on using Flash Player 9’s Full-Screen Mode in Flex. I’ve seen this appear a few times in the bugbase and on lists, but here is some simple code to let you toggle between “full screen mode” and “normal mode” in a Flex application. Note that in this example I’m listening for the
applicationComplete event in the main <mx:Application /> tag instead of the
creationComplete event. The
applicationComplete tag is called slightly after the
creationComplete event, after the Application has been completely initialized.
If you try and access the
Application.application.stage property from the
creationComplete event, you’ll get a run-time error (RTE) saying the following:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.core::UIComponent/set initialized()
The example below is pretty bare with just a few Label controls and a Button control, but it should have enough of the required code to give you a push in the right direction.