Wednesday, April 20, 2011

Disable WindowedApplication Resize in Flex

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

From stackoverflow
  • 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.)

    Jim In Texas : 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.

0 comments:

Post a Comment