Afternoon to you all.
I am writing today because I am having issues with a gallery, which came courtesy of Scotty.
Here is the AS I am working with:
this.pathToPics = "ourwork/";
this.pArray = ["coolfront_01.jpg", "zeno.jpg", "hearth_home.jpg", "intelli.jpg", "medwave_01.jpg", "magna_01.jpg", "lipton_01.jpg", "guidant_01.jpg", "rimage_01.jpg", "jobdig.jpg", "cprx.jpg", "nonin.jpg", "new_leaf.jpg", "element.jpg", "carie.jpg", "trg.jpg", "rolco_01.jpg", "plantronics_01.jpg"];
this.fadeSpeed = 20;
this.pIndex = 1;
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;
}
};
//loading en setting x/y for first picture
this.changePhoto[0];
The problem is that I need to use the stop(); command, but when I do (regardless of whether in with this AS or on a separate layer), the buttons cease to fucntion and I am unable to use view what is in the photo gallery.
Any suggestions would be greatly appreciated.