tags:

views:

1762

answers:

1

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

+4  A: 

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

dirkgently
It's weird that they just didn't make the WindowedApplication object have a writeable resizabe property. Thanks for this answer dirkgently, you saved me a lot of head scratching.
Jim In Texas