1 Reply Latest reply on Aug 22, 2017 6:19 AM by Colin Holgate

    Dynamic Circular Preloader

    iezqandarzulqarnaen Level 1



      I am using Adobe Animate CC 2017 & I've made a Dynamic Circular Preloader by following tutorial from :


      Circular Dynamic Preloader Tutorial - Flash CS4 CS5.5 ActionScript 3.0 Website Content Loader - YouTube


      but stuck at percent AS3 codes.


      here is my .fla file : https://www.dropbox.com/s/mp7murk9ixou7di/DynamicCircularPreloader.fla?dl=0


      Dropbox - DynamicCircularPreloader.fla


      hoping if someone have a time and take a look whats the faulty on it.


      Thank you.

        • 1. Re: Dynamic Circular Preloader
          Colin Holgate MVP & Adobe Community Professional

          It will be hard to test, because everything loads immediately. If it ends up being a lot bigger FLA then you might see it work.


          You would want to gotoAndStop on the loader, not gotoAndPlay. And on complete you want to gotoAndStop on the main timeline. Here's how I think the script should be:


          function loadProgress(my_content:ProgressEvent):void {

               var percent:Number = Math.floor( (my_content.bytesLoaded * 100) / my_content.bytesTotal );

               myLoadText.text = percent + "%";



          function loadComplete(e:Event):void {

               gotoAndStop(currentFrame + 1);


          loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);

          loaderInfo.addEventListener(Event.COMPLETE, loadComplete);