Papervision

Hi… how can u set it so tht it reads the images for gallery from xml for the code below
i can create the carosel but loading the images from the xml is getting tricky…
what i am doing here is loading xml… and pushing the images as materials to plane into an array that i can populate later on… but its not workin
if there is a better way then u have to let me know …



private function loadXML() : void
        {
            loader = new URLLoader(new URLRequest("images.xml"));
            loader.addEventListener(Event.COMPLETE, createCarousel);
            loader.addEventListener(ProgressEvent.PROGRESS, preLoader)
        }
    private function createCarousel(e : Event) : void
        {
            var xml : XML = new XML(e.target.data);
            var list : XMLList = xml.image;
            anglePer = (Math.PI * 2) / list.length();
            for(var i : int = 0;i < list.length();i++)
            {
                var bmpMaterial : BitmapFileMaterial = new BitmapFileMaterial(list*.@src);
                ar.push(bmpMaterial)
                
            }

        }

thanks