package 
{
    import flash.display.Sprite;
    import flash.display.Bitmap;
    import flash.display.Loader;
    import flash.events.Event;
    import flash.geom.Point;
    import flash.display.BitmapData;
    import flash.geom.Matrix;
    import flash.desktop.NativeApplication;
    import flash.net.URLRequest;
    import flash.net.URLLoader;
    import flash.display.LoaderInfo;
    import flash.utils.ByteArray;
    import flash.system.LoaderContext;
    import flash.system.ApplicationDomain;
    import flash.geom.Rectangle;
    import flash.display.Screen;

    public class StandaloneLoader extends Sprite 
    {

        private var logo:Class = tank_png;
        private var logoBmp:Bitmap;
        private var guiLayer:Sprite;
        private var prelauncher:Loader;
        private var locale:String;
        protected var prelauncherSwf:String;

        public function StandaloneLoader()
        {
            addEventListener("addedToStage", this.init);
        }

        private function init(param1:Event=null):void
        {
            removeEventListener("addedToStage", this.init);
            stage.align = "TL";
            stage.scaleMode = "noScale";
            this.prelauncherSwf = ((loaderInfo.parameters["prelauncher"]) || ("Prelauncher.swf"));
            this.locale = ((loaderInfo.parameters["locale"]) || ("ru"));
            LocalizedTexts.setLocale(this.locale);
            this.configureStage();
            this.createGUI();
            this.loadStandalone();
        }

        private function configureStage():void
        {
            stage.align = "TL";
            stage.stageHeight = 0x0100;
            stage.stageWidth = 0x0100;
            stage.nativeWindow.maxSize = new Point(stage.nativeWindow.width, stage.nativeWindow.height);
            stage.nativeWindow.minSize = new Point(stage.nativeWindow.width, stage.nativeWindow.height);
            this.setCenterPosition();
        }

        private function createGUI():void
        {
            this.guiLayer = new Sprite();
            this.logoBmp = (new this.logo() as Bitmap);
            this.guiLayer.addChild(this.logoBmp);
            stage.addChild(this.guiLayer);
        }

        private function removeGUI():void
        {
            stage.removeChild(this.guiLayer);
        }

        private function loadStandalone():void
        {
            if (this.prelauncherSwf.indexOf("file") < 0)
            {
                this.prelauncherSwf = (this.prelauncherSwf + ("?rand=" + Math.random()));
            };
            var _loc1_:URLRequest = new URLRequest(this.prelauncherSwf);
            var _loc2_:URLLoader = new URLLoader();
            _loc2_.dataFormat = "binary";
            _loc2_.addEventListener("complete", this.byteArrayLoadComplete);
            _loc2_.addEventListener("ioError", this.onLoadingError);
            _loc2_.addEventListener("securityError", this.onLoadingError);
            _loc2_.load(_loc1_);
        }

        private function onLoadingError(param1:Event):void
        {
            Alert.showMessage(LocalizedTexts.CONNECTION_ERROR);
        }

        private function byteArrayLoadComplete(param1:Event):void
        {
            var _loc4_:LoaderInfo;
            var _loc2_:ByteArray = (URLLoader(param1.target).data as ByteArray);
            this.prelauncher = new Loader();
            _loc4_ = this.prelauncher.contentLoaderInfo;
            _loc4_.addEventListener("complete", this.onLauncherLoadingComplete);
            _loc4_.addEventListener("ioError", this.onLoadingError);
            _loc4_.addEventListener("securityError", this.onLoadingError);
            var _loc3_:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain);
            _loc3_.allowCodeImport = true;
            _loc3_.parameters = _loc4_.parameters;
            this.prelauncher.loadBytes(_loc2_, _loc3_);
        }

        private function setCenterPosition():void
        {
            var _loc1_:Rectangle = stage.nativeWindow.bounds;
            var _loc2_:Screen = Screen.getScreensForRectangle(_loc1_)[0];
            stage.nativeWindow.x = ((_loc2_.bounds.width - stage.nativeWindow.width) / 2);
            stage.nativeWindow.y = ((_loc2_.bounds.height - stage.nativeWindow.height) / 2);
        }

        private function onLauncherLoadingComplete(param1:Event):void
        {
            this.removeGUI();
            stage.nativeWindow.maxSize = new Point(1034, 680);
            stage.nativeWindow.minSize = new Point(stage.nativeWindow.width, stage.nativeWindow.height);
            stage.nativeWindow.width = 1034;
            stage.nativeWindow.height = 680;
            addChild(this.prelauncher.getChildAt(0));
            stage.stageWidth = 1034;
            stage.stageHeight = 680;
            stage.nativeWindow.maxSize = new Point(stage.nativeWindow.width, stage.nativeWindow.height);
            stage.nativeWindow.minSize = new Point(stage.nativeWindow.width, stage.nativeWindow.height);
            this.setCenterPosition();
        }


    }
}

 оставь просто логику загрузки swf и все, остальные окна изменения размеров убери