Attach movie? PHP? i need expert help

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?

i don’t see why would you use php :slight_smile:

are the larger pics included in the swf (in the library), or would they be loaded at run time? :slight_smile:

The larger pics the buttons link too would be included in the swf. They client doens’t want any preloaders after the main one.

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 :slight_smile:

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.

What do u think?

ok… the fla attached below works well for images with identical dimensions…

it can be easily modified though to work with images of different dimensions, i would use a (scripted) mask :slight_smile:

[ Clickity Click ]

p.s. i need to go to bed now, i’ll do the masking thing tomorrow, or even better, try doing it on your own :wink:

lol i’m off to bed to. and i will try it on my own. thanks for all the help.

**** dude this is amazing. I cna’t believe how u gusy come up wiht this stuff so quick.

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?

I don’t quite get you, can i see a sample of the movie running? =)

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 :slight_smile:

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 =)

kickass. iddint see anyway to break the loop. Oh “break” how i remember u from my Basic A days lol. htanks again ahmed;)

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.:-\

hm… i can’t help you on preloading the swf’s, i’ve never done that ;(

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+:

haha… no problem :beam:

I haven’t done a single preloader that actually works so far… i don’t know how you’d go about this, sorry :slight_smile:

hey ahmed:

can you re-post your fla? i´m getting a broken link. =)

Thanks :wink:

Remove the port from the URL. :wink:

http://24.141.60.208/p1.fla

hehe… sorry, i swiched servers last night :slight_smile: