# Photogallery question

**URL:** https://forum.kirupa.com/t/photogallery-question/219995
**Category:** Uncategorized
**Created:** [March 21, 2007, 7:13pm UTC](https://forum.kirupa.com/t/photogallery-question/219995 "2007-03-21T19:13:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dolphin\_m70](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@dolphin\_m70](https://forum.kirupa.com/u/dolphin_m70)
#### Post date: [March 21, 2007, 7:13pm UTC](https://forum.kirupa.com/t/photogallery-question/219995/1 "2007-03-21T19:13:14Z")

</div>

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

---

<div class="post-metadata">

### Author: ![pappageo](https://avatars.discourse-cdn.com/v4/letter/p/6de8d8/32.png) [@pappageo](https://forum.kirupa.com/u/pappageo)
#### Post date: [June 25, 2008, 8:49am UTC](https://forum.kirupa.com/t/photogallery-question/219995/2 "2008-06-25T08:49:01Z")

</div>

[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!

---

<div class="post-metadata">

### Author: ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)
#### Post date: [June 25, 2008, 11:46am UTC](https://forum.kirupa.com/t/photogallery-question/219995/3 "2008-06-25T11:46:35Z")

</div>

stringy is the man!

---

<div class="post-metadata">

### Author: ![cazwalks](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@cazwalks](https://forum.kirupa.com/u/cazwalks)
#### Post date: [June 25, 2008, 12:34pm UTC](https://forum.kirupa.com/t/photogallery-question/219995/4 "2008-06-25T12:34:40Z")

</div>

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!!
