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!
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