在Adobe AIR多个Windows多个、Adobe、AIR、Windows

2023-09-08 13:47:05 作者:何必太在乎你

是否有可能有多个Windows的处理在一个Adobe AIR应用程序打开?您可以ofcourse使外观图释通过让应用程序是透明的,但我感兴趣的是更好的解决方案。

Is it possible to have multiple windows-"handles" open in one Adobe AIR application? You can ofcourse make a walkaround by letting the app be transparent, but I am interested in a better solution.

推荐答案

下面将做的伎俩(这是西奥的code只是纠正了一下):

The following will do the trick (It is Theo's code just corrected a bit):

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" applicationComplete="main()">
    <mx:Script>
    <![CDATA[
    import mx.core.Window;

    private function main( ) : void {
        var window:Window;
        for ( var i:int = 0; i < 5; i++ ) {
            window = new Window();
            window.width  = 200;
            window.height = 300;
            window.open(true);
            window.showStatusBar = false;
        }
    }
    ]]>
    </mx:Script>
</mx:Application>
 
精彩推荐