5 Replies Latest reply on Feb 1, 2017 8:05 PM by kglad

    Flash "External Preloader" not working

    RazethAnimation Level 1

      Hey all!

       

      I've been trying to figure this issue out for a while now, using multiple different preloaders, even the one Adobe provides, and get some slightly varied, but no luck.

       

      I have a flash file hosted on google sites, that I am trying to preload with another flash entirely, and it seems to not be working in many cases.

       

      The examples I will show you are my results from using the built in, external preloader provided by Adobe.

       

      This is the code:

       

      var contentLoader:Loader;

      loadContent("website.swf");

       

      function loadContent(url:String):void {

          contentLoader = new Loader();

          contentLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loading);

          contentLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, contentLoaded);

          contentLoader.load(new URLRequest(url));

      }

       

      function contentLoaded(evt:Event):void {

          //Optionally change to a clip holder and set progressbar visibility.

          addChild(contentLoader);

      }

       

      function loading(evt:ProgressEvent):void {

          var loaded:Number = evt.bytesLoaded / evt.bytesTotal;

          setBarProgress(loaded);

      }

       

      function setBarProgress(value:Number) {

          progressbar.bar.scaleX = value;

      }

       

      Now for my results:

       

       

      When testing in Firefox and Chrome:

      2017-02-01 18_26_05-.png

      No issues, all preloaders I have tried work in Firefox without an issue.

       

      When testing in Microsoft Edge or Internet Explorer:

      2017-02-01 18_28_59-Collaboration with Ironmane by RazethAnimation -- Fur Affinity [dot] net - Inter.png

      The flash refuses to load and the loading bar breaks.

       

      With some other templates, I couldn't get chrome to work. I have had 100% success with Firefox only.

       

      I am running the latest version of Flash Player, and this same issue happens with other users.

       

      I would like to know if anyone knows why this happens, and how I can fix it, as many users will be seeing this, and for those that use Edge or IE, I would like this working.