Disable WindowedApplication resizing in Flex

I'm trying to make WindowedApplication in Flex not change. However, resizable is a read-only public variable for the class.

How do I prevent a user from resizing a Flex application (works in Adobe Air)?

+3
source share
2 answers

If your project is called foo, then it will also be automatically generated foo-app.xml. This is the application configuration file. Edit this file, in particular, change:

<!-- Whether the user can resize the window. Optional. Default true. -->
<!-- <resizable></resizable> -->

in

<!-- Whether the user can resize the window. Optional. Default true. -->
<resizable>false</resizable>

(Note: This property is usually commented out, and the default is true.)

+9
source

, , , src Flash Builder -- .xml . ( .) :

<maximizable>false</maximizable>
<resizable>false</resizable>
-1

Source: https://habr.com/ru/post/1706213/


All Articles