Disable WindowedApplication Resize in Flex

airapache-flexflex3

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)?

Best Answer

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.)

Related Topic