Please tips on building a image gallery

Hi!

I am kinda of new in this AS3 world and I am trying to make an image gallery getting all the images from a xml file. I am struggling at loading the images and creating each MC to hold each image and putting all the MC inside another MC that will be scrolling .Here is my code that I got so far.


package
{
   import flash.display.Loader;
   import flash.display.MovieClip;
   import flash.events.Event;
   import flash.events.EventDispatcher;
   import flash.net.URLLoader;
   import flash.net.URLRequest;
   
   public class teste extends MovieClip
   {
      var picXML : XML;
      var picList : XMLList = new XMLList();
      var xmlLoader : URLLoader = new URLLoader();
      var imgLoader : Loader = new Loader();      
      var thumbs : Array = new Array();      
      var numImgs : Number;
      var holder : MovieClip = new MovieClip();
      var mcImg : MovieClip;
      
      public function teste()
      {
         init();
      }
      
      private function init():void
      {
          xmlLoader.load(new URLRequest("album.xml"));
         xmlLoader.addEventListener(Event.COMPLETE,onXMLLoaded);
      }
      
      private function onXMLLoaded(event:Event):void
      {
        picXML = new XML(event.target.data);   
        picList = picXML.pic.attribute("url");

        buildThumbs(picList);
      }
      
      private function buildThumbs(_list : XMLList):void
      {
          for each(var pl : XML in _list)
          {
           thumbs.push(pl);
          }
         
         numImgs = thumbs.length;
        
         for(var i = 0;i <= numImgs;i++)
         {
            mcImg  = new MovieClip();
            mcImg.name = "img" + i;
            imgLoader.load(new URLRequest(thumbs*));
            
            mcImg.addChild(imgLoader);
            holder.addChild(mcImg);
         }
         
      }
      
   }
}


I get an error at line : imgLoader.load(new URLRequest(thumbs*));

Here is the error message:

[INDENT]TypeError: Error #2007: Parameter url must be non-null.
at flash.display::Loader/flash.display:Loader::_load()
at flash.display::Loader/load()
at teste/::buildThumbs()
at teste/::onXMLLoaded()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()

[/INDENT]

What am I doing wrong? Where can I find an example because it is taking me too long since I am not good at AS3 .

what are the ideas behind this scenario? Load the images from xml. Load each img into an Empty MC. Put all the MC into another MC(HOlder) and make this giant MC scroll.Would it be rigth?