# XML: Thumbnails Tutorial problem

**URL:** <https://forum.kirupa.com/t/xml-thumbnails-tutorial-problem/185114>\
**Category:** flash\
**Created:** [April 11, 2006, 2:44am UTC](https://forum.kirupa.com/t/xml-thumbnails-tutorial-problem/185114 "2006-04-11T02:44:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alpharaven](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@alpharaven](https://forum.kirupa.com/u/alpharaven)\
**Post date:** [April 11, 2006, 2:44am UTC](https://forum.kirupa.com/t/xml-thumbnails-tutorial-problem/185114/1 "2006-04-11T02:44:49Z")

</div>

I am trying to do is add different galleries under the same xml file. I am able to achive that but for some reason if the previous gallery has more thumbnails than the next one it wont reload the thumbnails and it will keep the same old ones on there.

```auto
function updateImage () {
 image = [];
 description = [];
 thumbnails = [];
 total = xmlNode.childNodes.length;
 for (i = 0; i < total; i++) {
  image* = xmlNode.childNodes*.attributes.image;
  thumbnails* = xmlNode.childNodes*.attributes.thumb;
  description* = xmlNode.childNodes*.attributes.description;
  thumbnails_fn (i);
 }
 firstImage ();
}
///////
next_party.onRelease = function () {
 xmlNode = xmlNode.nextSibling;
 if (i < (currentIndex - 1)) {
  i++;
  break;
 } else {
  updateImage (xmlNode);
  currentIndex++;
  xmlNode = currentIndex;
  picture_num ();
 }
};
next_party.onEnterFrame = function () {
 if (xmlNode == null) {
  next_party._visible = false;
 } else {
  next_party._visible = true;
 }
};
//
prev_party.onRelease = function () {
 xmlNode = xmlNode.previousSibling
 if (i >(currentIndex - 1)) {
  i--;
  break;
 } else {
  updateImage (xmlNode);
  currentIndex++;
  xmlNode = currentIndex;
  picture_num ();
 }
};

```

---

<div class="post-metadata">

**Author:** ![alpharaven](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@alpharaven](https://forum.kirupa.com/u/alpharaven)\
**Post date:** [April 11, 2006, 2:18pm UTC](https://forum.kirupa.com/t/xml-thumbnails-tutorial-problem/185114/2 "2006-04-11T14:18:22Z")

</div>

Does anyone know how to do this?

---

<div class="post-metadata">

**Author:** ![adam9575](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@adam9575](https://forum.kirupa.com/u/adam9575)\
**Post date:** [April 11, 2006, 4:06pm UTC](https://forum.kirupa.com/t/xml-thumbnails-tutorial-problem/185114/3 "2006-04-11T16:06:30Z")

</div>

how advanced are you with as,im having the same kinda probs,you have messenger msn or something let me know we could help each other plus i have some video tutorials that might help us!

Adam;-)

---

<div class="post-metadata">

**Author:** ![alpharaven](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@alpharaven](https://forum.kirupa.com/u/alpharaven)\
**Post date:** [April 11, 2006, 4:11pm UTC](https://forum.kirupa.com/t/xml-thumbnails-tutorial-problem/185114/4 "2006-04-11T16:11:24Z")

</div>

> [@adam9575](#):
>
> how advanced are you with as,im having the same kinda probs,you have messenger msn or something let me know we could help each other plus i have some video tutorials that might help us!
> 
> Adam;-)

I am not that advanced. But I can get around it. Send me a PM and we will talk …

---

<div class="post-metadata">

**Author:** ![adam9575](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@adam9575](https://forum.kirupa.com/u/adam9575)\
**Post date:** [April 11, 2006, 4:15pm UTC](https://forum.kirupa.com/t/xml-thumbnails-tutorial-problem/185114/5 "2006-04-11T16:15:27Z")

</div>

you got msn meessenger?

---

<div class="post-metadata">

**Author:** ![alpharaven](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@alpharaven](https://forum.kirupa.com/u/alpharaven)\
**Post date:** [April 12, 2006, 11:53pm UTC](https://forum.kirupa.com/t/xml-thumbnails-tutorial-problem/185114/6 "2006-04-12T23:53:35Z")

</div>

Does anyone know how I can refresh or reload the thumbnails!

---

<div class="post-metadata">

**Author:** ![alpharaven](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@alpharaven](https://forum.kirupa.com/u/alpharaven)\
**Post date:** [April 26, 2006, 2:08am UTC](https://forum.kirupa.com/t/xml-thumbnails-tutorial-problem/185114/7 "2006-04-26T02:08:13Z")

</div>

I am trying to unload and reload the new thumbnails. I have looked under all the other post on this website but I have not come across one that has either solved the issue or has the same excat problem. **Someone please help** I have been trying to figure this out for 2 weeks now.:tired:
