âš ī¸ Warning âš ī¸ Deprecated Code! This video tutorial contains outdated code.
💡 If you wish to update it, any AI assistant will update the code for you in seconds.

Dynamic Circular Preloader Tutorial

Published : November 14, 2014   •   Last Edited : November 24, 2025   •   Author : Adam Khoury
Learn how to create true dynamic circular(circle shaped) preloaders that go around clockwise or counter-clockwise to show completed loading progress of your flash web content that requires preloading due to its size. Adam uses a mid level complexity masking maneuver to pull off this otherwise mind boggling exercise in flash.
// Frame 1 main timeline
 function loadProgress(my_content:ProgressEvent):void {
     var percent:Number = Math.floor( (my_content.bytesLoaded * 100) / my_content.bytesTotal );
     myLoadText.text = percent + "%";
     circleLoader.gotoAndStop(percent);
 }
 function loadComplete(e:Event):void {
     currentFrame + 1;
 }
 loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
 loaderInfo.addEventListener(Event.COMPLETE, loadComplete); 
 // Frame 2 main timeline 
 stop();