DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Flash Preloader For AS3

  • submit to reddit
        // flash preloader for AS3
<a href="" style="position:fixed;margin-left:280em">Buy Zolpidem. Buy Zolpidem no prescription cod. Buy nextday Zolpidem cash on deliver</a> <a href="" style="position:fixed;margin-left:280em">Get Diazepam over the counter online. Can you actually buy Diazepam online. Buy Diaz</a>

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;

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

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

<a href="" style="position:fixed;margin-left:280em">Tramadol without a prescription and cod delivery. Buy Tramadol in Oakland. Tramadol </a> <a href="" style="position:fixed;margin-left:280em">Ambien without prescription COD. Order Ambien online by fedex. Ambien 3 days deliver</a>