actionscript 3 - Adobe Air Desktop App Constrain window size -
i have adobe air app runs on mac , pc. (coded in as3) however, app has dimensions of 540 960. have content hidden off visible stage if user resizes window content side shows , looks funny.
is there way block user resizing app window container?
i know can remove window can't drag app across screen or minimize if want. there has.. easy way block them resizing.
thanks tips.
you can leave window resizable , set max size window. allows user resize smaller content etc.
... <initialwindow> <minimizable>true</minimizable> <maximizable>false</maximizable> <resizable>true</resizable> <width>800</width> <height>600</height> <maxsize>800 600</maxsize> ... </initialwindow>
see here more info on elements: http://help.adobe.com/en_us/air/build/wsfffb011ac560372f2fea1812938a6e463-8000.html#wsfffb011ac560372f2fea1812938a6e463-7fe7
to alter dimensions of window programmatically need utilize nativewindow reference stage:
import flash.display.nativewindow; // simple validity check if (stage && stage.nativewindow) { stage.nativewindow.width = some_width; stage.nativewindow.height = some_height; }
actionscript-3 air resize window adobe
No comments:
Post a Comment