I have a FLA with a lot of thumbnail buttons in it. Each thumb is supposed to load a larger pic into a section. There are about 64 thumbs and i need a quick way setting this up.
Do make 64 mc’s out of the larger images and attach them from the library(if so how)?
I dont’ think they have PHP support so that avenue is out.
What would be the easist way for me to have 64 buttons laod a differnt pick into a certain area of the screen?
okay, if they’re all the same dimensions, i would do it this way:
First, i would have all the images inside a single clip, at different frames.
I would have for-loop nested inside another for-loop, which would attach the images on the timeline dynamically, modify their width/height to be thumbnail-size, and set the thumbnails’ onRelease functions.
the onRelease function would merely make a duplicate of the movieclip with all the images and gotoAndStop() to the according frame
My explaination i know isn’t that good, i can make a sample fla if you need one =)
Ok Wow that would be great cause i have about 3 other projects that could use that.
Un fortualty all the pics aretn the same size. they are all the same hight but the widths are all differnt. So i guess i find a new way or do a lot of croping huh? I guess icould make an action for it in PS to save croping time.
OK i got it working with the diffenrt sized pics. Now i have one question. When i have an uneven # of thumbs it jsut fills in the empty spaces with the last frame over and over again. Is there any way to get it to stop of should i jsut make hte last frame a blank one?
well say if you where going 6 cloums x4 rows it will create 24 thubmnails. NOw if you only have 22 frames in the pics timeline it would take wnat is in frame 22 and put it in 23 and 24 to fill out the rows. So you are left with the last pic duplicating to fill out the last thumbnails.
That explane it?
All i did was cover it with a mask and that fixes it.
oh… don’t mask, add this line inside the loop instead
if (num>=22) break;
what it does is, it checks if the variable ‘num’, which we incerement by 1 at each loop, is greater than or equal to 22. if it IS, it stops the loop from attaching any more clips =)
I’ve built the gallerys in separt SWF’s. I’m loading these into a main SWF. I’ve been trying to build a prelaoder for when they are loaded but my preloaders fail to work. I tried a simple ifFrameLoaded and a % prelaoder using getbytes but nithere seems to work. They jsut don’t show up.
I’m assuming this has something to do with the fact there is nothing in the main scene but AS?
Any ideas on what is going on. SOrry i’m beeing such a bohter this week.:-\
NP man you have been a great help as it is. Yo uahve saved me liek 3 days of desing time. IT only took me 4 hours to make 6 gallerys with about 1000 pics total. Thanks again so much.:thumb: :A+: