I'm trying to make it so the WindowedApplication in Flex is not resizable. However, resizable is a read-only public variable for the class.
How do I make it so the user cannot resize the Flex application (running in Adobe Air)?
I'm trying to make it so the WindowedApplication in Flex is not resizable. However, resizable is a read-only public variable for the class.
How do I make it so the user cannot resize the Flex application (running in Adobe Air)?
If your project is called foo
a foo-app.xml
will also be automatically generated. This is an application configuration file. Edit this file, in particular change:
<!-- Whether the user can resize the window. Optional. Default true. -->
<!-- <resizable></resizable> -->
to:
<!-- Whether the user can resize the window. Optional. Default true. -->
<resizable>false</resizable>
(Note: This property is commented out typically and the default value is true.)
To make the main window application such that it can neither be resized nor be maximized, then go to the src folder of your application in Flash Builder and open your-application-name-app.xml file. (This is the app config file of your project.) Now make the following adjustments to the maximizable and resizable properties in this file:
<maximizable>false</maximizable>
<resizable>false</resizable>