Adobe Air: Start the hidden native window
source link: https://www.codesd.com/item/adobe-air-start-the-hidden-native-window.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Adobe Air: Start the hidden native window
How do I open a new window as hidden? (note the visible="false"
)
<s:Window xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
showStatusBar="false"
resizable="false"
visible="false">
If I declare a window this way, and then call this.open(false);
, the window will quickly open and then hide, and then be reshown when I actually display it, which is quite ugly.
I want to do this to be able to load content and fit the window to that size before showing it.
I was able to set my application invisible (visible=false) in the preinitialize event handler of the application and set it to visible in the handleOnInvoke event handler.
Related Articles
Adobe AIR 1.5 - Install the AIR package as a native Windows executable (.EXE)
Adobe Air - Change the meta title of the application window
cacheAsBitmap causing a graphic crash on the GPU rendering mode in Adobe Air, when the application runs on Dell Venue 8 7840
Adobe Air - get the name of the device (such as EVO, DROID X ..)
Can Adobe Air be the best solution for a Mac and iPhone application?
Start the default browser - Windows
how to install adobe air in the emulator
adobe AIR: prevents the GC from running
Adobe Air - worth the hype?
Adobe Air - Choose the webcam manually
Run Apple Script on the hidden safari window
Start the application before Windows Shell starts?
Open links in an IE10 frame target Start the application for Windows 8
How do I start the second QDialog window on the MainWindow side?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK