PDA

View Full Version : preloading once, multiple targets


Flippie124
09-23-2005, 09:42 AM
hello,

I'm creating an image gallery. If you enter the gallery, all the images are first preloaded. Then you see all the small scaled images. The problem is that if you click on an image, it needs to be shown at full scale in a differen window/movieclip. At the moment I have to preload the clicked image again in another movieclip. Is there a way to preload the image once by the moviecliploader and then show it in different movieclips? ... Any other suggestions for this problem? .. I think the only way to fix this is creating real small versions and large versions for each image.

s_purs
09-23-2005, 09:46 AM
so you want to preload the large versions and the small version at the start? and at the moment it only preloads the small versions?

(just checked i understand what you mean)

s_purs
09-23-2005, 09:51 AM
I know this might not be the best way to do it- as im newish to AS too- but couldnt you just preload the larger files the same way and the same time you load the small ones, but then do something like big._alpha = 0 to hide them, and then when they click on the small images you just make the large pictures 100% alpha?

(as i said im new too, but just trying my best)

Flippie124
09-23-2005, 09:54 AM
well, there is only one version of each image currently ... So there is only a full scaled version. If you enter the gallery tumbs are displayed but these are just the large version images scaled to 100x100. So all large versions are preloaded and scaled to view the gallery. If you click on a tumb, I open a new Movieclip and preload that image AGAIN in the new MC. What I want to do is preload the full scaled images only once when you enter the page. On the page you see then the small scaled 100x100 versions and if you click on a tumb it shouldn't preload the image again but just rescale the tumb to its normal size in another MC.

So actually I don't want to use 2 versions of each image. Just the large version that is also used to display tumbs

s_purs
09-23-2005, 10:02 AM
i dont get why it would preload it twice, you already loaded the full thing the first time and then scaled down, so surely calling it for a second time would mean it shouldnt have to load it all again *shrugs*

sorry, you will have to wait for somebody good.

but if you want a good place to host your pics for free go to http://picsplace.to
i used it for the gallery i just made, and as long as your jpegs are >1.5mb then you can host them there, and it even creates a thumbnail size version for you- then i just linked to the thumb and the full sized when needed.

Flippie124
09-23-2005, 10:07 AM
the problem with the moviecliploader is that you have to specify the target mc where the image should be loaded into. If you load it into "testmc", you can't "copy" the image into another targetmc. So in my case I have to preload the image again into my popup window mc. That suxx :)

s_purs
09-23-2005, 10:08 AM
sorry, you will have to wait for somebody else :(

but that picture hosting place is good if you need it.

good luck