# XML resize thumbs (hope I'm not beating a dead horse)

**URL:** <https://forum.kirupa.com/t/xml-resize-thumbs-hope-im-not-beating-a-dead-horse/185444>\
**Category:** flash\
**Created:** [April 13, 2006, 12:45pm UTC](https://forum.kirupa.com/t/xml-resize-thumbs-hope-im-not-beating-a-dead-horse/185444 "2006-04-13T12:45:38Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [April 18, 2006, 5:48am UTC](https://forum.kirupa.com/t/xml-resize-thumbs-hope-im-not-beating-a-dead-horse/185444/21 "2006-04-18T05:48:36Z")

</div>

Better so?

scotty(-:

---

<div class="post-metadata">

**Author:** ![Esoteric](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@Esoteric](https://forum.kirupa.com/u/Esoteric)\
**Post date:** [April 18, 2006, 6:24am UTC](https://forum.kirupa.com/t/xml-resize-thumbs-hope-im-not-beating-a-dead-horse/185444/22 "2006-04-18T06:24:11Z")

</div>

I would so hug you in a totally platonic way right now! heh.

If you watch it though when it hits the 11th thumb a white box shows up and slows my computer down… It’s really odd. I can’t see what is causing it, or how to fix it.

Thanks a million! You’re too kind. Seriously… no one is this cool…

---

<div class="post-metadata">

**Author:** ![momotic](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@momotic](https://forum.kirupa.com/u/momotic)\
**Post date:** [April 18, 2006, 6:43am UTC](https://forum.kirupa.com/t/xml-resize-thumbs-hope-im-not-beating-a-dead-horse/185444/23 "2006-04-18T06:43:14Z")

</div>

Hi everyone? I hope there’s someone that can give me some advice :). I have made a foto gallery with mouse over thumbnails. Right now the number of thumbs are defined, but I would like them to come from an xml file. For now my thumbs have an action script code that takes the images for each file from an external folder “Images”. It took me some time to make this thumb slider work and now I don’t know how to make it work with the thumbs and the images coming from an xml file. Do I have to change the script also?  
Thank you so much.

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [April 18, 2006, 7:37am UTC](https://forum.kirupa.com/t/xml-resize-thumbs-hope-im-not-beating-a-dead-horse/185444/24 "2006-04-18T07:37:52Z")

</div>

@Esoteric, :lol: I see it happening (I’ve tested it with 9 thumbs before) and don’t know why it’s happening. For some reason, that corresponding picture becomes visible in white. I don’t notice the slowdown.  
A (simple) workaround is to position your original container mc off stage 🙂

@momotic, have a search around the forums, you’ll find a lot of xml driven galleries, eg:  
[http://www.kirupa.com/developer/mx2004/thumbnails.htm](http://www.kirupa.com/developer/mx2004/thumbnails.htm)

scotty(-:

---

<div class="post-metadata">

**Author:** ![Esoteric](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@Esoteric](https://forum.kirupa.com/u/Esoteric)\
**Post date:** [April 19, 2006, 6:12am UTC](https://forum.kirupa.com/t/xml-resize-thumbs-hope-im-not-beating-a-dead-horse/185444/25 "2006-04-19T06:12:16Z")

</div>

[COLOR=black][FONT=Verdana]I took the container mc off the stage and it seems like its working but if you click enough images that white box shows up and sometimes when you simulate download it randomly shows up… it’s so bizarre. What would cause that?[/FONT][/COLOR]

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [April 19, 2006, 6:55am UTC](https://forum.kirupa.com/t/xml-resize-thumbs-hope-im-not-beating-a-dead-horse/185444/26 "2006-04-19T06:55:03Z")

</div>

:lol: If I only knew…  
I’ll have a look at it later today.

scotty(-:

---

<div class="post-metadata">

**Author:** ![Esoteric](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@Esoteric](https://forum.kirupa.com/u/Esoteric)\
**Post date:** [April 19, 2006, 10:29am UTC](https://forum.kirupa.com/t/xml-resize-thumbs-hope-im-not-beating-a-dead-horse/185444/27 "2006-04-19T10:29:29Z")

</div>

[COLOR=black][FONT=Verdana]One other quick thing I noticed. Thumb9 (technically thumb 10) when clicked the large image isn’t masked… and it’s the only one that does that… another oddity.[/FONT][/COLOR]

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [April 19, 2006, 10:36am UTC](https://forum.kirupa.com/t/xml-resize-thumbs-hope-im-not-beating-a-dead-horse/185444/28 "2006-04-19T10:36:27Z")

</div>

I think there lies the problem of the white box as well, ta first it had to do with the depth of the (duplicated) mask, but that wasn’t the issue. Will let you know if I find a solution.

scotty(-:

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [April 19, 2006, 1:59pm UTC](https://forum.kirupa.com/t/xml-resize-thumbs-hope-im-not-beating-a-dead-horse/185444/29 "2006-04-19T13:59:40Z")

</div>

I’ve found the little …  
As I thought it was in the depths further I’ve made some little changes in the AS so all alpha zero is now invisible to prevent lagging.

scotty(-:

---

<div class="post-metadata">

**Author:** ![Esoteric](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@Esoteric](https://forum.kirupa.com/u/Esoteric)\
**Post date:** [April 20, 2006, 5:39am UTC](https://forum.kirupa.com/t/xml-resize-thumbs-hope-im-not-beating-a-dead-horse/185444/30 "2006-04-20T05:39:15Z")

</div>

Awesome. Looks great. The only other question I have is how to make the dynamic text box stationary so I could put it anywhere and it not move around? And to display the ‘title’ info from the xml.

Thanks a million Scotty. I’ll be posting my site in the forums when I’m done with a dedication to you.

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [April 20, 2006, 6:30am UTC](https://forum.kirupa.com/t/xml-resize-thumbs-hope-im-not-beating-a-dead-horse/185444/31 "2006-04-20T06:30:56Z")

</div>

To make it static, skip this line in the resizeMe function

```auto
info._y = Math.round(this._y+this._height/2+spacing/2);

```

btw change this line (in the same function)

```auto
	info.text = tArray[id];

```

in

```auto
info.text = iArray[id];

```

to get the proper information:)

scotty(-:

---

<div class="post-metadata">

**Author:** ![Esoteric](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@Esoteric](https://forum.kirupa.com/u/Esoteric)\
**Post date:** [April 21, 2006, 5:34am UTC](https://forum.kirupa.com/t/xml-resize-thumbs-hope-im-not-beating-a-dead-horse/185444/32 "2006-04-21T05:34:42Z")

</div>

Cool the Text box works perfect now. I thought I wouldn’t have another question… but I do. I’m loading the mask6.swf into an empty movieclip in another .swf. The problem is that the resize box doesn’t work because the resize AS is calling the \_root. I tried changing to target path in the mask6 AS to different things (like \_parent.\_parent, \_global, etc.) I’m sure I’m just missing one thing that’s not making it work.

Thanks.

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [April 21, 2006, 5:41am UTC](https://forum.kirupa.com/t/xml-resize-thumbs-hope-im-not-beating-a-dead-horse/185444/33 "2006-04-21T05:41:44Z")

</div>

At the top of your code put

```auto
var root = this;

```

and replace all ‘\_root’ with ‘root’

scotty(-:

[Previous page](https://forum.kirupa.com/t/xml-resize-thumbs-hope-im-not-beating-a-dead-horse/185444.md?page=1)
