Please help converting this from 6 to 8

Hello all, I was hoping someone could look through this code to tell me what I need to fix for it to work in 8. It only loads the images if I publish the swf in flash 6.

I can not seem to figure it out.

Any help would be great!

Thanks

Dale


var thumb_spacing = 100;
var thumb_row_distance = 100;
var portfolio_xml = new XML();
var columns = 3;
//variable for the chosen gallery
var index = 1;
//variable we need later to remove the "old" thumbs
var currentLength;
var currentSlidePosition;
var currentImageSelected;

photoItems = new Array();  
descriptItems = new Array();  
 


function GeneratePortfolio(portfolio_xml, t) {
    //remove the old thumbs
    for (var i = 0; i<currentLength; i++) {
        //box is the mc inside menu_mc, where the thumbs are loaded
        menu_mc.box["thumbnail_mc"+i].removeMovieClip();
    }
    var portfolioPictures = portfolio_xml.childNodes;
    
    //set currentlength to the current amount of thumbs
    currentLength = portfolioPictures.length;
    TotalPhotos.text = currentLength;
    
    
    UpdatePhotoPosition(0);
    
    
    
    //Default the first pic as the main pic
    holder_mc.image_mc.loadMovie(portfolioPictures[0].attributes.image);
    description_txt.text = portfolioPictures[0].firstChild.firstChild.nodeValue;
    UpdateSelectedPhoto(portfolioPictures[0].attributes.image);
    
    
    for (var i = 0; i<portfolioPictures.length; i++) {
        var currentPicture = portfolioPictures*;
        //box is the mc inside menu_mc, where the thumbs are loaded
        var currentThumb_mc = menu_mc.box.createEmptyMovieClip("thumbnail_mc"+i, i);
        
        //this sets the position of the thumbs.  _x = horizontal pos _y = vert pos
        currentThumb_mc._x = 5+(i%columns)*thumb_spacing;    
        currentThumb_mc._y = 5+Math.floor(i/columns)*thumb_row_distance;
        
        
        currentThumb_mc.createEmptyMovieClip("thumb_container", 0);
        currentThumb_mc.thumb_container.loadMovie(currentPicture.attributes.thumb);
        currentThumb_mc.title = currentPicture.attributes.title;
        currentThumb_mc.image = currentPicture.attributes.image;
        currentThumb_mc.id = currentPicture.attributes.id;
        currentThumb_mc.description = currentPicture.firstChild.firstChild.nodeValue;
        currentThumb_mc.photonumber = i;
        
        currentThumb_mc.onRollOver = currentThumb_mc.onDragOver=function () {
            
            
            this._x = (this._x -0);
            this._y = (this._y -0);
            this._xscale = 100;
            this._yscale = 100;
            
        };
        currentThumb_mc.onRollOut = currentThumb_mc.onDragOut=function () {
            this._x = (this._x +0);
            this._y = (this._y +0);
            this._xscale = 100;
            this._yscale = 100;
        };
        currentThumb_mc.onRelease = function() {
            holder_mc.image_mc.loadMovie(this.image);
            holder_mc.play();
            description_txt.text = this.description;
            UpdatePhotoPosition(this.photonumber);
            UpdateSelectedPhoto(this.image);
        };
    }

    //interval fort the scroller to be sure all thumbs are created and you have
    //the correct height of menu_mc.box
    delay = setInterval(setScroller, 250);
}




function UpdatePhotoPosition(pos)
{
    CurrentPhotoNumber.text = pos+1;
}

function UpdateSelectedPhoto(imagePath)
{
    currentImageSelected = imagePath;
    trace("Current Selected Photo is " + currentImageSelected);
}



// xml object for xml content (defines sources for selections)
//I've made this a function so you can call it again
function choosePortfolio(index) {
    
    portfolio_xml.ignoreWhite = true;
    portfolio_xml.onLoad = function(success) {
        if (success) {
            var gallery = this.firstChild.childNodes[index];
            //set the gallery name
            galleryInfo.text = this.firstChild.childNodes[index].attributes.title;
            //get the amount of galleries
            var totalGalleries = this.firstChild.childNodes.length;
            GeneratePortfolio(gallery, totalGalleries);
        } else {
            trace("Error loading XML file");
        }
        // no success?  trace error (wont be seen on web)
    };
    // load
    portfolio_xml.load("images.xml");
}


//aet the first gallery
choosePortFolio(0);