Load photo in current swf?

hello, im using some AS that scotty modified from the photo gallery tutorial on this site.
it goes like this.

var absX = 523;
var absY = 320;
this.pathToPics = "";
this.pArray = ["pic1.jpg", "pic2.jpg", "pic3.jpg", "pic4.jpg", "pic5.jpg", "pic6.jpg"];
this.fadeSpeed = 20;
this.pIndex = 0;
this.photo._x = absX-200;
// first picture = 400 width/2
this.photo._y = absY-133;
// first picture = 266 height/2
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;
		this.photo._x = absX-this.photo._width/2;
		this.photo._y = absY-this.photo._height/2;
	} 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];

it works great in the swf im using it in, but when the swf is loaded into another one the pictures don’t load. i know its a simple fix, but ive tried everything that i know.(which isn’t much, but im gettin better.;))