You can also find the example at google code.

  var folder:String = "http://apdevblog.com/examples/apdev_preloader/img/";
  var images:Array = ["img01.png", "img02.png", "img03.png", "img04.png"];
  var _txt1 : TextField;
  var _txt2 : TextField;

  for (var i : int = 0; i < images.length; i++) 
  {
    var img:PreLoader = new PreLoader();
    img.addEventListener(ProgressEvent.PROGRESS, _onProgress, false, 0, true);
    img.addEventListener(Event.COMPLETE, _onImgLoaded, false, 0, true);
    img.load(folder + images[i]);
    img.x = i * 50;
    addChild(img);
  }

  _txt1 = new TextField();
  _txt1.autoSize = TextFieldAutoSize.LEFT;
  _txt1.x = 5;
  _txt1.y = 320;
  addChild(_txt1);

  _txt2 = new TextField();
  _txt2.autoSize = TextFieldAutoSize.LEFT;
  _txt2.x = 5;
  _txt2.y = 340;
  addChild(_txt2);

  function _onProgress(event : ProgressEvent)
  {
    _txt1.text = (event.bytesLoaded / event.bytesTotal).toString();
  }

  function _onImgLoaded(event : Event)
  {
    var preLoader:PreLoader = event.target as PreLoader;
    _txt2.text = preLoader.url + " loaded";
  }