# 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:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 20, 2004, 10:04pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/21 "2004-07-20T22:04:55Z")

</div>

Hi, I just got into this thread and was doing some experimenting with v3.zip. I read a post that said you could use this resizer to load swf’s instead of images and I wanted try it out, but I’ve found a hickup I can’t grasp. If I let the resizer movie autoload the first external swf file I can’t get it to load any other swf file, i.e. when I click the next buttons in my menu nothing happens. Now when I don’t allow the resizer movie to autoload an swf I can click on any of the menu buttons to load any of my swf’s, but after that swf is loaded I am then in the same situation of clicking menu buttons with no response. This makes me think that maybe it’s nested timeline issue? I’m using all the defaults from V3. Is there anything I should do in regards to keeping the timelines correctly separted when loading swf’s into the resizer movie? -or- If that’s not the issue, any ideas on what could be causing the resizer to only load one swf?

PS

Just so I’m crystal clear, I’ve made no changes to the V3 code. I’ve only changed the file names in the XML file to point to my swf’s. When I use jpegs the resizer movie works perfectly.

Thanks in advance,  
Dekker

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 20, 2004, 11:19pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/22 "2004-07-20T23:19:33Z")

</div>

I am fairly new to Flash programming and brand new to this thread. It has been a tremendous help as I have started getting together some family photos. I have mainly been working with V3, and I’m hoping to add a couple of things. How would I go about using 2 new buttons (or MC’s acting as buttons), to navigate ahead to thumbs 11-20 (or 21-30), or backward to the previous thumbnails? I imagine it will involve changing the thumbs within the nav control, and I am a little unsure on how to best accomplish my goal. Anyway, thanks again for the info provided so far, and thanks in advance for any help. I can attach my .fla if it would help.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 21, 2004, 1:40pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/23 "2004-07-21T13:40:22Z")

</div>

Okay, I figured it out. The resizer won’t properly load swf’s that have been exported in Flash 7 player, only 6 or below. If you try to load a Flash 7 swf file then the entire movie freezes up. just FYI about an issue. It took a long night of experimenting to figure out that the error was in the export settings, lol!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 21, 2004, 8:23pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/24 "2004-07-21T20:23:45Z")

</div>

Hello from Sweden  
Thats my first post in this GREAT forum…I play with “resizeBorder\_V2” and I have two questions  
1.Is it posible that the images of the thumbnails are loading external via xml like the pictures?

2.I have see at: [http://www.amivitale.com](http://www.amivitale.com/) 2 nice effects…  
On RollOver the thumbs are loading a image and it apears a blue information arrow that (if you rollOver) show a textinfo about the photo

is this posible to include this in resizeBorder\_V2

Regards and sorry for my bad english

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 21, 2004, 11:29pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/25 "2004-07-21T23:29:35Z")

</div>

> [@vman](#):
>
> Just thought I’d post a link to a project I’m working on for my friend’s band’s Web site. The idea all started with this awesome thread (thanks again Scotty and everyone else that contributed). A lot of thanks goes to CyanBlue for helping me out with some coding issues as well.
> 
> Anyways, what it does is dynamically create a series of thumbnails in grid form based on how many images are in a particular folder (via php). It also dynamically creates a series of buttons to change galleries based on how many folders are in a particular directory (also via php). The text on the buttons is also dynamically created based on which gallery directory the images are loading from (also via php). Being a novice, this was a pretty big accomplishment for me and I learned a lot thanks to this thread and others at [AS.org](http://AS.org).
> 
> There are only 2 images in the first gallery that resize all the way at the bottom. Please let me know if you find bugs. Thanks.
> 
> [http://www.thezplane.com/test/test2.swf](http://www.thezplane.com/test/test2.swf)
> 
> If anyone would care to see the code, let me know.
> 
> BTW, the pictures don’t have anything to do with the band. They’re just some personal ones I used temporarily. Only 3 of the buttons work. I just added some empty folders to test the php code amd the dynamic text on the buttons…

Vman, very nice site. This is almost exactly what I’d like to do with my family photos. I am fairly new to Flash programming and brand new to this thread. It has been a tremendous help. I have mainly been working with V3, but I’m hoping to add a couple of things like the menu you used to navigate to other thumbs and sets of pictures. If I could get a copy of your source (.fla and whatever else), I would really appreciate it. Thanks in advance for any help. I can attach my .fla if it would help.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2004, 10:04pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/26 "2004-07-22T22:04:31Z")

</div>

mathdaddy,  
Thanks for the comp. Unfortunately, I won’t be around my computer till next Sunday as I am on vacation. I’ll post something when I get back. Just didn’t want you to think I was ignoring you.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 5:07am UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/27 "2004-07-24T05:07:03Z")

</div>

> [@dr.ew](#):
>
> well okay, first youd havta go back and give the interval an ID…then make a mc, give it an instance name of stop. then use that button on release to clear the interval.  
> [AS]  
> function slideshow(){  
> if (cur == 0) {  
> containerMC.loadPic(pArray.length-1);  
> } else {  
> containerMC.loadPic(cur-1);  
> }  
> };  
> var slideInterval = setInterval(slideshow, 2000);  
> stop.onRelease = function () {  
> clearInterval(slideInterval);  
> }  
> [/AS]
> 
> that stops it…and you can even put another mc, start, to start the interval up again (another onRelease function that uses the setInterval again…)
> 
> [EDIT] Actually, for some reason, the ‘start’ idea works, but if pressed a lot can cause problems (overlapping intervals…) Also, once youve stopped it, then start it again, the stop doesnt work again. I’ll try to figure it out…[/EDIT]

This works: Create a clip or button with instance of stop and one for start. Also these functions disable the appropriate instances, thus “start” cannot be clicked more than once. There are no prev/next buttons.

Global var is the key here.

[AS]

function slideshow(){  
if (cur == 0) {  
containerMC.loadPic(pArray.length-1);  
} else {  
containerMC.loadPic(cur-1);  
}  
};

start.onRelease = function () {  
start.enabled = 0;  
stop.enabled = 1;  
\_global.slideInterval = setInterval(slideshow, 2000);  
}

stop.onRelease = function () {  
start.enabled = 1;  
stop.enabled = 0;  
clearInterval(slideInterval);  
}

[/AS]

-rm

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 10:36am UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/28 "2004-07-24T10:36:34Z")

</div>

I’ve noticed that after changing the gallery.xml file Mozilla caches the xml data until the browser is shut down and restarted. I found this solution to the problem which might be useful to others:

[AS]

// Prevents caching of loaded files (TXTs, SWFs, XMLs etc…)  
String.prototype.noCache = function(){  
if ((\_root.\_URL.substr(0,5)).toLowerCase()!=“file:”){  
if(this.indexOf("?")==-1){  
return this+="?noCache="+(new Date().getTime());  
}else{ return this+="&noCache="+(new Date().getTime());  
}  
}else{ return this;  
}  
}

gallery\_xml.load(“gallery.xml”.noCache());

[/AS]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 4:06pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/29 "2004-07-24T16:06:33Z")

</div>

this is the best thread ever i vonder if ther is any one out ther thet knows hov to change the fade to somting like this.

[http://www.ronmacphoto.com/](http://www.ronmacphoto.com/)

/M

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 4:25pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/30 "2004-07-24T16:25:06Z")

</div>

yes of course that’s brightOffset

here add this to yur movie…

brightOffset();  
}  
};  
}

MovieClip.prototype.brightOffset = function(alpha){  
this.c = new Color(this.containerMC)  
this.o = {rb:100,gb:100,bb:100}  
this.up = true  
this.onEnterFrame = function(){  
if(this.containerMC.\_alpha \< 100){  
this.containerMC.\_alpha += 10  
}  
if(this.up == false){  
this.o.rb -= 10  
this.o.bb -= 10  
this.o.gb -= 10  
} else {  
if(this.o.rb \< 255){  
this.o.rb \*= 1.5  
this.o.bb \*= 3  
this.o.gb \*= 1.5  
} else {  
this.o = {rb:255,gb:255,bb:255}  
this.up = false;  
}  
}  
if(this.o.rb \< 0){  
this.o = {rb:0,gb:0,bb:0}  
delete this.onEnterFrame;  
}  
this.c.setTransform(this.o)  
}  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 5:11pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/31 "2004-07-24T17:11:46Z")

</div>

thank you but i have no ide wher to put it in te script.

i download the mx.zip from thread 364

/M

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 7:29pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/32 "2004-07-24T19:29:55Z")

</div>

HERE ARE BOTH VERSION OF THE FLA…

i hope this help…ok if not let me know

take care

this version of the mx. fla as the brightOffset AS on it…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2004, 1:58am UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/33 "2004-07-25T01:58:57Z")

</div>

GREAT JOB!!!

My questions is if it is posible that the button have a lite thump of the Pictures  
or on (on RollOver) like att [http://www.amivitale.com/main.html](http://www.amivitale.com/main.html)

Lambis

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2004, 2:51pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/34 "2004-07-25T14:51:52Z")

</div>

Thank you so very much it look´s excellent. 😃 . I wonder if its possible to have the same effeckt when image fades away ???

-thanks !

/M

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2004, 4:56pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/35 "2004-07-25T16:56:44Z")

</div>

Hey Sipher I’m on MX and got “unexpected file format” when trying to open your file. Any chance you could repost it?

:hr:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2004, 5:15pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/36 "2004-07-25T17:15:35Z")

</div>

i post both ver. on tread #378

good luck!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2004, 5:24pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/37 "2004-07-25T17:24:05Z")

</div>

Thanks sipher! 😃

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2004, 7:12pm UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/38 "2004-07-25T19:12:20Z")

</div>

how do i make the thumnails to show that they have bin visited and show you vher you are???

:party: /M

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 27, 2004, 2:29am UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/39 "2004-07-27T02:29:41Z")

</div>

Sipher, that is a beautiful effect!

Just a beginner so a basic attempt at part of nessie’s question.

To make a button look hit you could try something like this in the onPress function

```auto
 
item.onPress= function(){
  this._alpha = 50;
  }

```

?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 27, 2004, 11:13am UTC](https://forum.kirupa.com/t/howd-he-do-this-resizing-slideshow/46448/40 "2004-07-27T11:13:49Z")

</div>

snaphappy i tryed this alredy !

but it makes only the last one to reduce the alfa. I might not know wher to put the code and make it work on each thumb separate. It would be nice if some one know how to make it work!

Thanks!

:pleased: /M

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

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