Xml portfolio image problem

Heej!

I kinda got a problem with my xml portfolio image loader. I want to load multiple images and the images have a thumbnail and a big image. loading the thumbnails works, but what do i have to write in the mouse down handler to let it work right? since i really got no idea how to pick the right image :open_mouth:

Hope someone can help me!

this is how my xml file looks like:

<?xml version="1.0" encoding="UTF-8"?>

<portfolio>

    <project>
        <naam>Illustraties</naam>
        <beschrijving>Dit zijn een aantal illustraties die ik laatste tijd gemaakt heb.</beschrijving>
        <datum>2007/2008</datum>
        <images>
        <image large="large10.jpg">thumb10.jpg</image>
        <image large="large09.jpg">thumb09.jpg</image>
        <image large="large07.jpg">thumb07.jpg</image>
        </images>
    </project>
    
    <project>
        <naam>School</naam>
        <beschrijving>Dit zijn een aantal dingen die ik voor school gemaakt heb.</beschrijving>
        <datum>2008/2009</datum>
        <images>
        <image large="large10.jpg">thumb10.jpg</image>
        <image large="large09.jpg">thumb09.jpg</image>
        <image large="large07.jpg">thumb07.jpg</image>
        </images>
    </project>
    <project>
        <naam>Ditjes</naam>
        <images>
        <image large="large10.jpg">thumb10.jpg</image>
        <image large="large09.jpg">thumb09.jpg</image>
        <image large="large07.jpg">thumb07.jpg</image>
        </images>
    </project>
    
</portfolio>

and this is my class with the imageloader (for the thumbnails) and the problem is the mouseDownhandler:

package actionscript {
    
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.filters.*;
    import flash.net.URLRequest;
    import flash.events.MouseEvent;
    import flash.text.TextField;
    
    public class projectMc extends MovieClip {
        
        private var _node:XML;
        private var i:Number;
    
        public function projectMc(node:XML){
            _node=node;
            
        imageloader();        
        titelLoader();
        descLoader();
        
        }
        
        
        
        
        private function imageloader (){
            var xPos:Number=0;
            var yPos:Number=0;
            var count:Number=0;
            
            for (var i=0; i < _node.images.image.length(); i++) {    
            
            var loader:Loader = new Loader();
            var urlreg:URLRequest = new URLRequest("media/"+_node.images.image*);
            loader.load(urlreg);
            thumbnails.addChild(loader);
            loader.x=xPos;
            loader.y=yPos;
            loader.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
            loader.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
            
            count++;
                
                if (count%4==0) {
                    xPos=+0;
                    yPos+=25;
                } 
                else {
                    xPos+=25;
                    yPos+=0;
                }
            
            }
        }
            
            private function titelLoader() {

            var urlreg:URLRequest=new URLRequest(_node.naam);
            projectnaam.text=_node.naam;

        }
        
        private function descLoader() {

            var urlreg:URLRequest=new URLRequest(_node.beschrijving);
            projectbeschrijving.text=_node.beschrijving;

        }
        
        
        private function mouseDownHandler(event:MouseEvent) {
        
            var urlreg:URLRequest=new URLRequest("media/" + _node.images.image[0][email protected]);
            var loader:Loader=new Loader;
            loader=new Loader;
            loader.load(urlreg);
            container.addChild(loader);

trace("mouse down");

        }
        private function mouseUpHandler(event:MouseEvent) {


trace("mouse up");

        }
    }
}

i really hope that someone knows what i have to do in the mousedownhandler! i know the solution might be simple but i really dont see it right now!