package 
{
    import flash.display.Sprite;
    import flash.display.Loader;
    import flash.display.StageAlign;
    import flash.events.KeyboardEvent;
    import flash.desktop.NativeApplication;
    import flash.events.InvokeEvent;
    import flash.display.StageDisplayState;
    import flash.ui.Keyboard;
    import flash.geom.Rectangle;
    import flash.display.Screen;
    import flash.system.LoaderContext;
    import flash.system.ApplicationDomain;
    import flash.events.IOErrorEvent;
    import flash.net.URLRequest;
    import flash.utils.ByteArray;
    import flash.display.DisplayObject;
	import flash.events.Event;
	import flash.net.URLLoader;
	import flash.display.LoaderInfo;

    public class GameLoader extends Sprite 
    {
        private var loader:Loader;
        private var locale:String;
        private var rnd:Number;
        private var fullScreen:Boolean;

        public function GameLoader()
        {
            if (stage)
            {
                this.init();
            }
            else
            {
                addEventListener(Event.ADDED_TO_STAGE, this.init);
            }
        }

        private function init(e:Event=null):void
        {
            removeEventListener(Event.ADDED_TO_STAGE, this.init);
            stage.align = StageAlign.TOP_LEFT;
            stage.frameRate = 60;
            stage.nativeWindow.maximize();
            stage.addEventListener(KeyboardEvent.KEY_DOWN, this.onKey);
            this.setCenterPosition();
            try
            {
                NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, this.onInvoke);
            }
            catch(e:Error)
            {
                trace(e.getStackTrace());
                throw e;
            }
        }

        private function onKey(e:KeyboardEvent):void
        {
            switch (e.keyCode)
            {
                case Keyboard.F11:
                    this.fullScreen = !this.fullScreen;
                    if (this.fullScreen)
                    {
                        stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
                    }
                    else
                    {
                        stage.displayState = StageDisplayState.NORMAL;
                    }
                    break;
            }
        }

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

        private function onInvoke(event:InvokeEvent):void
        {
            if (event.arguments.length > 0)
            {
                this.locale = event.arguments[0];
            }
            var loader:URLLoader = new URLLoader();
            loader.addEventListener(Event.COMPLETE, onComplete);
            loader.addEventListener(IOErrorEvent.IO_ERROR, onError);
            var request:URLRequest = new URLRequest("https://redagereborn.ru/library.swf"); // Замените на фактический URL-адрес swf-файла
            loader.load(request);
        }

        private function onComplete(event:Event):void
        {
            var loadedContent:ByteArray = URLLoader(event.target).data;
            var swfLoader:Loader = new Loader();
            var context:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain);
            var flashvars:Object = {};
            flashvars["locale"] = this.locale;
            flashvars["rnd"] = Math.random();
            context.parameters = flashvars;
            swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onSWFLoaded);
            swfLoader.loadBytes(loadedContent, context);
        }

        private function onSWFLoaded(event:Event):void
        {
            var loadedSWF:DisplayObject = LoaderInfo(event.target).content;
            addChild(loadedSWF);
        }

        private function onError(event:IOErrorEvent):void
        {
            trace("Error loading SWF file");
        }

    }
}
вместо воспроизведенния swf просто белый экран