Howd he do this? Resizing slideshow

Hmm, wouldn’t let me post everything in one shot. This is ultimately going to be used for my friend’s band’s web site so the pictures don’t really match the titles. I just used what I had laying around for now. Also, I just created some empty folders to test the dynamic button creation so anly 4 buttons load anything for now

Anyways, I think that’s about it. The unfortunate thing is that, since everything is created dynamically, it may be hard to understand what’s going on since there are no thumbs or pics. The .fla might not help much either 'cause there is nothing really to look at since all of the movement is based on the content.

The file structure on my server is as follows: The .swf and all of the php files are in the root directory. Inside that, I have a directory called “Arra”. Inside that, I have directories “thumbs1”, “thumbs2”, “thumbs3”, etc. and “pics1”, “pics2”, “pics3”, etc. For it to work the naming convention has to stay like this. Also, the actual .jpgs in the pics folders have to be named pic1.jpg, pic2.jpg, pic3.jpg, etc. and the thumbnails in the thumbs folders are named 1.jpg, 2.jpg, 3.jpg, etc.

The thumbnail mc’s that are dynamically created are a movieclip in the library with an identifier name of “box” with a dimension of 60 x 45. The thumbs I create have the same dimensions so they fit nicely. I’m not scaling them at all within Flash.

For some clarification: “thumbMC” is the mc that holds the thumbnails and scrolls. “thumbFrame” is the yellow frame around the thumbnails. “galleryTitle” is the textbox at the bottom of the border. “gutter” is the frame around the dragger for scrolling. “goldBar” is the (you guessed it) the gold bar at the top. “gigText” is the text box within the textbutton movieclip(s) that are dynamically created via attachMovie and loaded into a container movie clip called “textButton_MC” that drops down when you click on “moreGalleries”. “downloadText” is the instance name of the Download Image" button.

Hope this helps!:slight_smile:

All of the code above is based on tutorials from either here or AS.org and was created with the help of a few different members of each so thanks everyone! It was a great learning experience. What got me started on it was this great thread so thanks again Scotty and the rest for all of the help. It still has a lot of room for improvement so any suggestions would be great.

I’m not the best at explaining things so if anyone has any questions, ask and I’ll try to answer. Here’s the link again. www.thezplane.com/test/new.htm

Hey vman that is awesome!! :thumb: Thanks so much for posting the code and the great explanation - we all really appreciate it!

:love:

Lovely, Vman… Where is my present from the AZ??? =)

Any time lunatic, hope you get something out of it. Cyan Blue here was an enormous help!

Lovely, Vman… Where is my present from the AZ??? =)

Your refrigerator magnet is in the mail! Just kidding. I wouldn’t insult you with something like that. Your being kept in mind for Christmas time!:smiley:

BTW, I am going to have a couple of questions for you later Cyan Blue. Now that I’ve gone and cleaned this thing up as best I can, there are a couple things in there I’m not getting. If someone asks, I’d like to be able to answer.=)

A little bit of advise for everyone: If you go on vacation with your in-laws, RENT YOUR OWN CAR!!! MONEY IS NO OBJECT!!!

I wouldn’t insult you with something like that. Your being kept in mind for Christmas time!

What’s wrong with the refrigerator magnet??? Besides that, I might not alive by the Christmas… Thunder might strike my forehead any second… :smiley:

there are a couple things in there I’m not getting

Yeah… Shoot the question… Maybe me or somebody else knows the answer… :slight_smile:

If you go on vacation with your in-laws, RENT YOUR OWN CAR!!! MONEY IS NO OBJECT!!!

Uh… That’s YOUR fault that you were on vacation with your in-laws… You should do your best to avoid that…
Oh, yeah, BTW… I am going to call your wife to see this thread… :krazy:

Oh, yeah, BTW… I am going to call your wife to see this thread…
I’m ok with that. She was ready to kill 'em long before I was. he he. :lol:

Great Gallery VMAN!!!

I am having some trouble with the files though. I can’t get the images to load?

Here is my folder setup|/
root|/
DynamicGallery.swf
filecounter.php
popup.php
thumbcounter.php
folder>Arra|/
pics1|/
pic1.jpg
pic2.jpg
thumbs1|/
1.jpg
2.jpg

I think that I have it all right. But when I try to test it no images come up?

Thanks !!!

Nevermind I got It!!
Thanks again for this vman!!!

One thing I did notice, especially on the algonquin fest series of photos - if you scroll way down in the thumbs and start loading some of photos say in the 40’s and 50’s? Because of the way the container resizes the scrollpane gets kind of messed up. Not a big thing but just something I noticed. :}

Yeah, I noticed that too when there is a huge difference in the photo sizes. Fix that would ya? :smiley:

Ha ha, funny man! I’ll give it a shot but . . . I’ve never done PHP before. Actually I was hoping to use an xml menu instead . . .

me + fixing complicated things = :skull: & :drool:

:stuck_out_tongue:

of course if anyone else wants to jump in please feel free! :hugegrin:

Well, it doesn’t have anything to do with the php. It’s this bit right here that’s doing it I think.

if (_root.thumbMC.dragger._y>=_root.thumbFrame._height) {
   _root.thumbMC.dragger._y = _root.thumbFrame._height/2;
  }

If the window is large and then resizes to something much smaller, you want to keep the dragger inside the constraints of the thumbFrame.

If you click #48, then scroll all the way to the bottom, click #39, then #35 this will show an example of what we’re talking about. At this point, I’m not sure what’s causing it, but I don’t think what I’m doing with this code up here is the best way to do this. I’m open to suggestions. I was thinking about doing away with the dragger and just going with a scroller based on mouse position similar to this http://www.thezplane.com/test/scroller.htm. I dunno.

Don’t do it! I find infinite menus to be somewhat annoying - its hard to find a frame rate that satisfies everyone, plus those users who have never seen one before don’t really know how to use it. My $0.02 anyway, lol.

I’ll give it a whirl, see what I can come up with. Thanks again for posting the code!

:hr:

Hello people!
Scotty i have a question for you!
Some time ago you uploaded the fla Scotty!
I have a question!
I dont understand where are the buttons in that fla,i dont find them!
Thanks!

hey authentik, what .fla?

scotty(-:

When you press the menu button some butons appears but in fla i cant find them!An explication a clue something,thanks man!

Aah, those buttons;)
They’re in a mc called “sub_index”, which is dynamically attached, you can find it in the library:)

scotty(-:

Thanks a lot man,great work!

welcome:)

xml_gallery_v3_scroller_wText_mx1.fla

Is there any one how knows how to make the thum´s apper on mouse over button instead of being visible all the time. And how do i make the first pic apper when entering movie. And one more question can i place the next/prev button so that they slide one each side of the image :puzzle: ??

i have the .fla from thread:below…

Page:17
nr:#253

Thread:
http://www.kirupaforum.com/forums/s...t=photo+gallery

/M