Question for STRINGY sliding gallery pt 2

[QUOTE=stringy;2012703]see if this something like you want

var buttonNames_array=[]
for(var j=1;j<4;j++){
	buttonNames_array.push(this["but"+j])
}
	
trace(buttonNames_array)
var currentlySelectedButtonID:Number;
clearAllButtons = function () {
	for (var i = 0; i<buttonNames_array.length; i++) {
		if (i != currentlySelectedButtonID) {
			buttonNames_array*.gotoAndStop("deSelected");
			buttonNames_array*.enabled = true
		}
	}
};
buttonRollOver = function () {
	clearAllButtons();
	if (currentlySelectedButtonID != this.id) {
		this.gotoAndStop("rollOver");
	}
};
buttonRollOut = function () {
	clearAllButtons();
};
buttonOnRelease = function () {
	currentlySelectedButtonID = this.id;
	clearAllButtons();
	this.gotoAndStop("selected");
	_root.trig.xposnew = -((_root.imagewidth)*(this.id+1));
	this.enabled = false

};
for (var i = 0; i<buttonNames_array.length; i++) {
	buttonNames_array*.id = i;
	buttonNames_array*.onRollOver = buttonRollOver;
	buttonNames_array*.onRollOut = buttonRollOut;
	buttonNames_array*.onRelease = buttonOnRelease;
}
// _root.imagewidth defines the width of the image//
_root.imagewidth = 385;
// _root.speed defines the speed of the sliding images//
_root.speed = 3;

[/QUOTE]

Hi stringy, I hope your around to see this.

Im so sorry to do this, but im having trouble expanding on the sliding gallery.

I am aiming to load 1 or 2 extra galleries using the shell you were so kind to help me with.

What i have done is to create another frame where i would use the same code but to point to another folder of images (code in nested MC imagescroller/scroller):

[COLOR=“DarkOrange”]loadMovie(“sultan/0.jpg”,“clip1”);
loadMovie(“sultan/1.jpg”,“clip2”);
loadMovie(“sultan/2.jpg”,“clip3”);[/COLOR]
to
[COLOR=“Magenta”]loadMovie(“poland/0.jpg”,“clip1”);
loadMovie(“poland/1.jpg”,“clip2”);
loadMovie(“poland/2.jpg”,“clip3”);[/COLOR]

What i have done is to literally duplicate the 1st frame into the second and have a button/s navagate to the second and/or third frames.

Now i thought that it should work due to the fact that the only changes made were the reference points to the images.

But all i get is a blank screen when leaving the first frame.

I have even tried duplicating all the relevant MC’s and updating the code to read lets say:
[COLOR=“Red”]scroller[/COLOR] and [COLOR=“Magenta”]scroller2[/COLOR] etc

Does it require some kind of resetting of information to accept new referencing to images?

I cant see why it should’nt work

WHAT AM I DOING WRONG!!!