URGENT! Deadline's over..preload jpegs

I’m making an image gallery and I want to preload each image per click instead of loading all the images at once. I don’t want to use load movie and make another bunch of swfs with an image in each!!

Is there a way to preload each image one by one using geturl?

you can do that by converting each of your jpegs into .swfs…

like … if you have an image… put it in your flash and add a preloader for that image… [ dont forget to put stop(); at the last frame ]

now go back to your photo gallery… you then call those images [ which you have converted into .swfs ] using

but.onPress = function () {
_root.createEmptyMovieClip(“container”, 1);
loadMovie(“yourPicture.swf”, “container”);
container._x = 150 ; <-- the postition
container._y = 20 ; <— the position
}

the “but” [ in but.onPress ] is the instance name of the button that calls the picture… :slight_smile:

… try it … hope it works… :slight_smile:

maybe there are other ways of doing it… but thats how i do it. :smiley: and it works hehehe

check this tut out for more info and stuff

http://www.kirupa.com/developer/mx/loading.htm

hope i didnt make things confusing for you… :smiley:

Hey thanks. That helped a lot…

But, it’d be really tiring to sit and convert 40+ images into swfs one by one…well I’ve tried entering the name of the images for the ‘load movie’ argument as in :

loadMovie(“bush.jpg”, “1”);

And it does show the image…so, I simply have to place all the images together with the main flash file and it starts calling the files directly.

Now, the problem i’m facing is,

  1. Preloading these images…(no independent swfs…only images)
  2. Positioning the images in the main flash when loaded…

I really need help on this one …thanks a million…

flash mx allow you to preload jpeg… pics

*Originally posted by voodoo *
**flash mx allow you to preload jpeg… pics **

HOW? HOW? HOW? I NEED TO KNOW THAT !!! WAAAAAAH !!

SEARCH!! SEARCH!! IT’S BEEN ASKED BEFORE!! WAAAAAAH!!

Settle EG settle. One day they will learn that the search button is there for a reason. As for you nizamm, you should set your priorities. This project should have been finished on time. tisk, tisk, tisk. just kidding :slight_smile:

*Originally posted by Skinny_T *
**Settle EG settle. One day they will learn that the search button is there for a reason. As for you nizamm, you should set your priorities. This project should have been finished on time. tisk, tisk, tisk. just kidding :slight_smile: **

Hey, go easy guys…fine fine…I’ll search next time…just that I didn’t get my hands for a long time on the net so thought I’d drop off a line and check back later…so chill ppl !!!

Besides, the deadline? Got an extension…:stuck_out_tongue: