I have a problem with my picture gallery! Please help me!

Hi…

I followed the kirupa tutorial for creating a picture viewer…It works fine except that the photos are huge, so I went into photoshop and resized them… As soon as I resize them, when I run the test movie in Flash, those pictures do not even appear.
I checked all the names, and paths and all that but it doesnt work.

Does anyone know what the problem could be?

Thanks

did you change the pictures’ format when you resized in photoship maybe you saved them in another format (not jpg)

or progressive jpg. flash can’t load progressive jpg’s dynamically. :-\

I checked…they are saved as jpgs. Flash has no problem detecting them, they just dont load…or I can see them for some reason. I can see the huges ones thou

what are progressive jpgs?

quote from webdevelopersnotes.com

Progressive JPEGs are similar to Interlaced Gifs and are loaded in the browser in a series of passes. First a ‘blurred’ image is displayed, then as more information flows in, the clarity increases. Most image editing and manipulating programs let you indicate the number of passes you want to have in the image.

In contrast to GIF, Progressive Jpgs are slightly smaller than plain jpg files. You’ll use JPG mostly for photographs and these tend to be large in size (both in physical dimensions and file size). The advantage offered to the visitor is that he or she atleast gets an idea of the image. Hence, I recommend using progressive JPGs always.

The only disadvantage in using Progressive JPGs is that they require more processing power by the client machine and the browser. However, in these days of high computing power and continuing improvements in browser software, this aspect can be safely ignored.

when you export the image from photoshop (save for web) you’ll see a check box there… if you don’t know what i’m talking about, run a search in the forums, you’ll find a screenshot. =)

this.pathToPics = “”;
// fill this array with your pics
this.pArray = [“You Talking to me.jpg”,“cat2.jpg”, “vlad.jpg”, “4.jpg”, “5.jpg”];
this.fadeSpeed = 10;
this.pIndex = 0;

this is the code that searches for the pictures…

The first one is huge size, all the others are rezised and I dont see them…I’m not really exporting them, just pointing to them and then loading them…

I have no idea why it’s not working…I am lost!

:frowning:

that’s why i’m telling you, when you resized the images surely you save them as progressive jpg. :-\

****, you were right…for some reason there was a little check some somewhere that I have to tick off.

Thanks for the help!!

Now I have another problem thou…I pictures load in the right size but they dont load in the box in which they are supposed to, would you have an idea why it’s doing that?

the only thing i can say without checking your fla…

when you load a jpg/swf into a MovieClip, the upper left corner of the jpg/swf is positioned at x:0 y:0 in the MovieClip. :slight_smile:

I just posted about this - I’m checking the movie clip that the pictures load into and it’s registration point is the upper left. Or is it the reg point for the whole swf? At least I have something to try now…