Scrolling image from xml in flash

Hi, I was just using kirupa’s scrolling thumbnail and xml gallery script and wanted to try something similar with the actual images.

I have a long poster image that I wanted the user to be able to scroll through using the hit_left and hit_right method of kirupa’s thumbnails but I can’t get the single image to scroll using the same script.

I tried to modify the script into a button that calls my xml image link but I’m not sure what to do with it next.

The script for it so far is here:

manifesto_btn.onRelease = function() {
if (p=0) {
picture._alpha = 0;
picture.loadMovie(image[p+9], 1);
title_txt.text = title[p+9];
desc_txt.text = description[p+9];
current_pos = 10;
pos_txt.text = current_pos+" / "+total;

function imageScroller() {
scroll_speed = 10;
if ((_root._ymouse>=picture._y) && (_root._ymouse<=thumbnail_mc._y+picture._height)) {
if ((_root._xmouse>=(hit_r._x-40)) && (picture.hitTest(hit_r))) {
picture._x -= scroll_speed;
} else if ((_root._xmouse<=350) && (picture.hitTest(hit_l))) {
picture._x += scroll_speed;
}
}
};

} else {

p=0;
picture._alpha = 0;
picture.loadMovie(image[p+9], 1);
title_txt.text = title[p+9];
desc_txt.text = description[p+9];
current_pos = 10;
pos_txt.text = current_pos+" / "+total;

function imageScroller() {
scroll_speed = 10;
if ((_root._ymouse>=picture._y) && (_root._ymouse<=thumbnail_mc._y+picture._height)) {
if ((_root._xmouse>=(hit_r._x-40)) && (picture.hitTest(hit_r))) {
picture._x -= scroll_speed;
} else if ((_root._xmouse<=350) && (picture.hitTest(hit_l))) {
picture._x += scroll_speed;
}
};
}
};
}


Thanks for any help or suggestions you can provide!