Photo gallery not working properly

Hi,

Im new to flash , anyway ive been doing the tutorial ‘create a photo gallery’ anyway i cant seem to get the images to line up correctly - there always displayed down to the bottom right of the scrren and also only 1 of my pictures is displayed, im missing 2 others. 1 of the mercedes-benz and 1 of the mitsubishi evolution.

this is the action scripting

  
 

this.pathToPics = "photogall/";
this.pArray = ["merc.jpg", "model.jpg", "evo.gif"];
this.fadeSpeed = 20;
this.pIndex = 0;
loadMovie(this.pathToPics+this.pArray[0], _root.photo);
MovieClip.prototype.changePhoto = function(d) {
 // make sure pIndex falls within pArray.length
 this.pIndex = (this.pIndex+d)%this.pArray.length;
 if (this.pIndex<0) {
  this.pIndex += this.pArray.length;
 }
 this.onEnterFrame = fadeOut;
};
MovieClip.prototype.fadeOut = function() {
 if (this.photo._alpha>this.fadeSpeed) {
  this.photo._alpha -= this.fadeSpeed;
 } else {
  this.loadPhoto();
 }
};
MovieClip.prototype.loadPhoto = function() {
 
 var p = _root.photo;
 
 p._alpha = 0;
 p.loadMovie(this.pathToPics+this.pArray[this.pIndex]);
 this.onEnterFrame = loadMeter;
};
MovieClip.prototype.loadMeter = function() {
 var i, l, t;
 l = this.photo.getBytesLoaded();
 t = this.photo.getBytesTotal();
 if (t>0 && t == l) {
  this.onEnterFrame = fadeIn;
 } else {
  trace(l/t);
 }
};
MovieClip.prototype.fadeIn = function() {
 if (this.photo._alpha<100-this.fadeSpeed) {
  this.photo._alpha += this.fadeSpeed;
 } else {
  this.photo._alpha = 100;
  this.onEnterFrame = null;
 }
};


Ive done what it says in the tutorial and have this problem, so i was hoping somebody will know how to sort it.

Thanks for your help

Andy

Change the registrationpoint of you “photo” movieclip.
At the moment it is in the center, it should be top-left. For the missing pictures, check if they’re non-progressive (Flash can’t load progressive jpg’s).

scotty(-:

and of course: Welcome to kirupa=)

Thanks-for your help scotty,

What do you mean by progressive Jpgs and how do you check that there non-progressive.

Thanks again

Andy

(non)progressive is a format for saving images as jpg.
In eg Photoshop, if you save an image as jpg, you choose which format you want;)

scotty(-: