package { import flash.display.Sprite; import flash.events.Event; import…
- User
package { import flash.display.Sprite; import flash.events.Event; import launcher.background.Background_Main; import launcher.button.FightButton; import launcher.panel.languagePanel; import launcher.panel.social.socialPanel; import launcher.panel.buttonBar.quickPanel; import launcher.snow.Snow; import flash.display.StageAlign; import flash.display.StageDisplayState; import flash.display.StageQuality; import flash.display.StageScaleMode; import flash.display.NativeWindow; import flash.display.NativeWindowType; import flash.display.NativeWindowInitOptions; import flash.desktop.NativeApplication; import flash.geom.Point; import flash.geom.Rectangle; import flash.display.Screen; import zip.ZIPResourceLoader; import caurina.transitions.Tweener; import flash.display.Loader; import flash.system.LoaderContext; import flash.system.ApplicationDomain; import flash.events.IOErrorEvent; import flash.net.URLVariables; import flash.net.URLRequest; import flash.events.MouseEvent;
code - Assistant
Вы можете закрыть предыдущее окно
NativeWindowс помощью методаclose()после открытия нового окна. Вот пример:as3private function startPressed(e:MouseEvent = null):void { // ... var window:NativeWindow = new NativeWindow(options); // ... window.activate(); window.addEventListener(Event.CLOSE, onWindowClose); // Закрытие предыдущего окна stage.nativeWindow.close(); }