# Howd he do this? Resizing slideshow

**URL:** <https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448>\
**Category:** classic bestof\
**Created:** [March 24, 2004, 6:18pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448 "2004-03-24T18:18:59Z")\
**Posts on this page:** 8\
**Page:** 7

<div class="post-metadata">

**Author:** ![sara\_d](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@sara\_d](https://forum.kirupa.com/u/sara_d)\
**Post date:** [April 18, 2006, 7:25am UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/121 "2006-04-18T07:25:51Z")

</div>

Hi Scotty, please help!  
I’m using the xml gallery fla from this thread . Fantastic!  
here is my question…  
When I have thumbnails in 100s (say 200 to 300) , the script wait for all thumbnails to be loaded before I can click on the thumbnail to view the main image.  
Is ‘AS’ not multi-threaded? Can I not view the slide image parallely when the thumbnail loading is in progress?  
FYI: Thumbnail size average is 5 to 10KB and the slide image is around 100KB., I tested on m/c with 3GHz and 2GB ram.  
Just from my initial tests, the xml gallery version posted in this thread ([http://www.kirupa.com/forum/showthread.php?t=202132](http://www.kirupa.com/forum/showthread.php?t=202132)) does seem to allow load the main image when the thumbnail loading is in progress!  
Any insight how this can be resolved? I don’t want the user to wait till all the thumbnails are loaded.  
Thank you very much!  
S A R A

---

<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:52am UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/122 "2006-04-18T07:52:07Z")

</div>

Off course it’s possible:)  
Chenge the loadButtons and nextButton function like below (and you can skip the acivateButtons function)

```auto
function loadButtons() {
	//added next two lines
	var but = th_nav["thmb"+tnNr];
	but.id = tnNr;
	var tbox = th_nav["thmb"+tnNr].box;
	tbox.loadMovie(tArray[tnNr]);
	temp = this.createEmptyMovieClip("tmp"+tnNr, 999);
	temp.onEnterFrame = function() {
		bt = tbox.getBytesTotal();
		bl = tbox.getBytesLoaded();
		var per = Math.round(((bl/bt)*100)/tArray.length);
		bar._width = ((totPer+per)/100)*curwidth;
		info.text = "loading thumbnail "+(tnNr+1)+" of "+tArray.length+" total";
		if (bt == bl && bt>4) {
			//set the onrelease actions here, so you can use each thumb that has loaded
			but.onRelease = function() {
				container.loadPic(pArray[this.id], iArray[this.id]);
				disButtons2(this.id);
			};
			nextButton();
			totPer += per;
			delete this.onEnterFrame;
		}
	};
}
function nextButton() {
	if (tnNr<tArray.length-1) {
		tnNr++;
		loadButtons();
		if (tnNr == 1) {
			//show the first pic if the second thumb gets loaded
			th_nav.thmb0.onRelease();
		}
	} else {
		mainButtons();
	}
}

```

btw welcome to kirupaforums 🙂

scotty(-:

---

<div class="post-metadata">

**Author:** ![sara\_d](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@sara\_d](https://forum.kirupa.com/u/sara_d)\
**Post date:** [April 19, 2006, 5:08pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/123 "2006-04-19T17:08:15Z")

</div>

Scotty,  
Fantastic! That worked. Thanks a lot.  
If there is any issue with loading the thumb image, then the script stops. (when thumbnail image not found or when it’s not in jpg format). I’ll add some delay logic to wait and see if it loads or else continue with the next thumbnail loading. Anyway, this is a homework for me 🙂

---

<div class="post-metadata">

**Author:** ![degree73](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@degree73](https://forum.kirupa.com/u/degree73)\
**Post date:** [April 19, 2006, 10:37pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/124 "2006-04-19T22:37:39Z")

</div>

Hi

Im new here and was wondering if someone can look at my file for this auto resize image container. My file is too large to post here so can someone send me an email address and I can send the file there?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![RhythmMethod](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@RhythmMethod](https://forum.kirupa.com/u/RhythmMethod)\
**Post date:** [April 25, 2006, 3:02am UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/125 "2006-04-25T03:02:19Z")

</div>

Hello Scotty and crew,

May I beg some help on the xml for the multiple gallery version? I need to expand on the gallery info. Instead of one sold paragraph, I need to make a list, with sublists. Here is the sort of thing I need to display with each gallery:

[FONT=Wingdings]v[/FONT]**1968 E.M.POLLMANN (with link to Pollmann’s site)**

[FONT=Wingdings]Ø[/FONT] **Versatile, Colorful Tone**  
[FONT=Wingdings]Ø[/FONT] **Pollmann Quality Material & Construction**  
[FONT=Wingdings]Ø[/FONT] **Consignment Sale - No Sales Tax!**  
[FONT=Wingdings]Ø[/FONT]**[U]Specifications[/U]**  
[LIST]  
[_][FONT=Wingdings]§[/FONT] **String Length - 41.0 Inches**  
[_][FONT=Wingdings]§[/FONT] **Body Length - 109.6cm**  
[_][FONT=Wingdings]§[/FONT] **Upper Bout Width - 48.7cm**  
[_][FONT=Wingdings]§[/FONT] **Middle Bout Rib Depth - 35.7cm** [/LIST] [FONT=Wingdings]Ø[/FONT]**[U]Standard Classic Contrabass Setup[/U]**  
[LIST]  
[_][FONT=Wingdings]§[/FONT] **Adjustable Bridge**  
[_][FONT=Wingdings]§[/FONT] **Solid Ebony Fingerboard**  
[_][FONT=Wingdings]§[/FONT] **German Endpin**  
[_][FONT=Wingdings]§[/FONT] **Professionally Dressed Fingerboard**  
[_][FONT=Wingdings]§[/FONT] **Properly Fitted Soundpost**  
[_][FONT=Wingdings]§[/FONT] **Stele Cable Tailgut** [/LIST]

I honestly tried to get my head around it, but only managed to break the file pretty good. After a couple of days I figure I’d better ask. Any help greatly appreciated!  
Best,  
John

---

<div class="post-metadata">

**Author:** ![mattiej](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mattiej](https://forum.kirupa.com/u/mattiej)\
**Post date:** [April 25, 2006, 12:03pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/126 "2006-04-25T12:03:28Z")

</div>

Hi, I’m using the multiple border resizing script, works great! :cap:  
But I don’t want to navigate trough lose buttons, but with prev and next buttons, how is that possible? :be:

Allready thanks =)

matt

---

<div class="post-metadata">

**Author:** ![michey](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@michey](https://forum.kirupa.com/u/michey)\
**Post date:** [May 11, 2006, 7:50pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/127 "2006-05-11T19:50:31Z")

</div>

I could not open your fla, may be F8, so I’m not really shure what you are trying to do.  
This should center an MC on Stage in Relation to Stage width and height.Maybe for the \_y Position you have just to write the apposite number.

```php
ContainerMC._x = (Stage.width-ContainerMC._width)/2;
ContainerMC._y = (Stage.height-ContainerMC._height)/2;

```

or in you case:

```php
ContainerMC._x = (Stage.width-ContainerMC._width)/2;
ContainerMC._y = 450;// or whatever

```

---

<div class="post-metadata">

**Author:** ![sepu](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@sepu](https://forum.kirupa.com/u/sepu)\
**Post date:** [May 11, 2006, 9:19pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/128 "2006-05-11T21:19:01Z")

</div>

hey guys … Great Thread ! Thanks a lot for all the help !.  
I’ve got a quick question … is it possible to use text as links instead of the thumbnails in one of these galleries like for example :  
Go to the Projects section of each. (by the way both sites are cool too)

[http://www.easybit.it/flash2005/main.php?language=eng](http://www.easybit.it/flash2005/main.php?language=eng)  
[http://www.workrocks.com/?lang=en](http://www.workrocks.com/?lang=en)

and also how could you add more pics let’s say you’ve got one of your works and then you want to show 3, 4 etc pics of the same work ? (you can see this in the examples above as well) Im sure this is more advanced anyway any help would be appreciated.

thanks.

[Previous page](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448.md?page=6)
