Photogallery question

hi
i have made a gallery from the tutorials which works fine. the images are loaded dynamically from xml file. the images are of diff sizes. i have made a rectangle (movieclip: rect) and my main clip which is empty movieclip (movieclip: holder). my question is how can i resize the image and the rectangle simultaneously.i have made an attachment of the outline

the code is below

var x:XML = new XML();
x.ignoreWhite = true;

var urls:Array = new Array();
var whoIsOn:Number;
x.onLoad = function(){
var photos:Array = this.firstChild.childNodes;
for(i=0;i<photos.length;i++){
urls.push(photos*.attributes.url);
}

holder.loadMovie(urls[0]);
whoIsOn=0;
}
x.load("images.xml");

previous.onRelease = function(){
    if(whoIsOn &gt; 0){
        whoIsOn--;        
        
        holder.loadMovie(urls[whoIsOn]);
        }
}

next.onRelease = function(){
    if(whoIsOn &lt; urls.length-1){
        whoIsOn++;
        holder.loadMovie(urls[whoIsOn]);
        }
}

thx in adv

[QUOTE=stringy;2089028]I have adapted Kirupas thumbnail thingy here for you
(thumbs/pictures don`t correspond due to my laziness)[/QUOTE]

wow, even though this was posted over a year ago this really made my night! I searched all over these forums for hours trying to find a solution like this… I dont know why it was so hard to find, this is perfect! Thanks!

stringy is the man!

I agree! i’ve been looking for this for ages too! and its brilliant! exactly what i was after!

Thank you thank you thank you!!