In a previous example, “Creating full-screen Flex applications”, we saw how to toggle full screen mode in a Flex application by setting the
allowFullScreen parameter in the HTML wrapper template’s
The following example shows how you can enable full screen from your HTML template to your Flex applications using the Flex 4 SDK (which uses SWFObject now).
Continue reading Creating full-screen Flex applications in Flex 4 (SWFObject Edition)
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.
Continue reading Creating full-screen Flex applications