Berg Flash Photo Album

This is a great photo album.

http://www.andrewberg.com/photobrowser/afpb_flash.html

The creator mentioned that he used something like this to create it, but I haven’t been able to get it to work.

stop();
var images_lv = new LoadVars();
images_lv.onLoad = function(success) {
	if (success) {
      trace("images_local.php = "+this.files);
	  var images_array = this.files.split("|");
	  trace("------------------------")
	  trace("images_array = "+images_array)
    } else {
      trace("load vars failed!");
    }
};

//the function that does the loading
loadImages = function(arr){
	//variable to keep track of the array length
	var l = arr.length
	// loop through the array
	for(var i = 0; i<l; i++){
		//with each loop create any empty movie clip
		currentClip = _root.createEmptyMovieClip("imgShell"+i+"_mc", i);
		// load the image from your current index in the array into the clip you created
		currentClip.loadMovie("images/"+arr*);
	}
}

images_lv.load("images_local.php");

Can someone explain to me how to use this? I haven’t been able to get it to work. I assumed that you would just load the script in the first frame of the movie and the ‘createEmptyMovieClip’ would take over, but that hasn’t worked.

Files are attached… Thanks!!