How to create a PreLoader bar in Adobe flash CS6 - Action Script 3.0

Опубликовано: 16 Июль 2026
на канале: Cr8tiveSWEET
24,400
145

In this tutorial video, I teach you guys how to create a preloader bar with Actionscript 3.0 in Adobe Flash Professional CS6. Please subscribe to my channel and like my videos. Thank you very very much.

Below is the script for the preloader-

stop();

this.addEventListener(Event.ENTER_FRAME, loading);

function loading(e:Event):void{

var total:Number = this.stage.loaderInfo.bytesTotal;
var loaded:Number = this.stage.loaderInfo.bytesLoaded;

loading_bar.scaleX = loaded/total;
loading_txt.text = Math.floor((loaded/total)*100)+ "%";

if (total == loaded){
play();
this.removeEventListener(Event.ENTER_FRAME, loading);
}

}

***Add the following stop () in the last frame of your movie or file.