Color Code final working!

//Color Code final working!

Here is a simple actionscript 3.0 preloader to demostrate that the code with color hightlighting is finally working!

I am using CodeColorer This is a great plugin, which allows you to color your code, provides links to the docs for keywords, and also allows lin numbers.


this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);

this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);

function onProgress(e:ProgressEvent):void{

	var loaded:Number =;

	var total:Number =;

	var pct:Number = loaded/total;

	loader_mc.scaleX = pct;

	loaded_txt.text = "Loading... " + (Math.round(pct * 100)) + "%";


function onComplete(e:Event):void{



By | 2009-02-15T00:01:09+00:00 February 15th, 2009|Actionscript 3.0|3 Comments

About the Author:


  1. John Barrett February 15, 2009 at 12:21 am

    Fianlly, it is working, what a beautiful thing!

  2. Norie February 15, 2009 at 6:03 am

    I’m happy for you!Congratulations!Keep up the good work!

  3. John Barrett February 15, 2009 at 11:28 pm

    Hi Norie,

    Thanks for the comments! Yep, I am so happy that I finally figured out how to post code, with color too.

Leave A Comment