Dynamic image scrolling gallery

With the help of Scotty and several of the tutorials here in these forums I have a dynamic scroller. The only problem is that I cannot figure out how to have one of the images appear on stage as an initial placeholder. Currently it is blank. The following is the code:

this.pathToPics = “image1folder/”;
this.pArray = [“image0.jpg”, “image1.jpg”, “image2.jpg”, “image3.jpg”, “image4.jpg”, “image5.jpg”];
this.fadeSpeed = 20;
MovieClip.prototype.changePhoto = function(d) {
this.pIndex = d;
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 = this.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;
}
};
// code for the menu
xcenter = 185;
speed = 1/20;
wijd = menu._width/2+19;
menu.setMask(mask);
menu.onEnterFrame = function() {
if (mask.hitTest(this._root._xmouse, this._root._ymouse)) {
var distance = this._parent._xmouse-xcenter;
this._x += (distance*speed);
if (this._x>0) {
this._x = -wijd;
}
if (this._x<-wijd) {
this._x = 0;
}
}
};

Any help or direction would be greatly appreciated. Scotty are you out there?

Gazzer

scotty,
I’ve been reading through this and other posts about dynamic image galleries, and I’m not able to get any of them to work properly. I need a gallery that has scrollable thumbnails, a full pic, and a description. It seemed like the modified kirupa photo gallery was an answer, but I can’t make it work. When I test it, the photo holder and the back button fade away and nothing else happens. Can you point me to any clues?

Thanks,
-Joshua

Can you post your .fla(s)?

scotty(-:

Hi

What do I need to make this script to work for me?
a mc named *photo, *an folder *images *containing the non-progresive images… ? can someone post a working .fla, it would make my day!

regards, henrik