Infinite menu type thing

I’ve got the following as:


#include "lmc_tween_as1.as"
stop();

_global.depthCounter = 0;
var fadeAmount = 30;
var images = new Array();
images[0] = "image1_small.jpg";
images[1] = "image2_small.jpg";
images[2] = "image3_small.jpg";
images[3] = "image4_small.jpg";
images[4] = "image5_small.jpg";
images[5] = "image1_small.jpg";
images[6] = "image2_small.jpg";
images[7] = "image3_small.jpg";
images[8] = "image4_small.jpg";
images[9] = "image5_small.jpg";
images[10] = "image1_small.jpg";
images[11] = "image2_small.jpg";
images[12] = "image3_small.jpg";
images[13] = "image4_small.jpg";
images[14] = "image5_small.jpg";
images[15] = "image1_small.jpg";
images[16] = "image1_small.jpg";

function init() {
	holder_mc.loadMovie(images[0]);
	var thumbz = createEmptyMovieClip("thumbz_mc", 1);
	thumbz._y = film_mc._y + 11;
	thumbz._x = film_mc._x;
	for(var i = 0; i < images.length; i++) {
		var curThumb = thumbz.attachMovie("thumbnail_mc", "thumb" + i, 100 + i);
		curThumb._x = 6 + i * (curThumb._width);
		curThumb.thumbContainer_mc.loadMovie(images*);
		curThumb.iValue = i;
		curThumb.onRollOver = function() {
			this._parent._parent.film_mc.alphaTo(100, 1, "easeOutQuad");
			this._parent.alphaTo(100, 1, "easeOutQuad");
		};
		curThumb.onRollOut = function() {
			this._parent._parent.film_mc.alphaTo(fadeAmount, 1, "easeOutQuad");
			this._parent.alphaTo(fadeAmount, 1, "easeOutQuad");
		};
		curThumb.onRelease = function() {
			this._parent._parent.holder_mc.loadMovie(images[this.iValue]);
		}
	}
}
	
function nextDepth() {
	_global.depthCounter++;
	return _global.depthCounter;
}

film_mc.onRollOver = function() {
	this.alphaTo(100, 1, "easeOutQuad");
};
film_mc.onRollOut = function() {
	this.alphaTo(fadeAmount, 1, "easeOutQuad");
};
/*film_mc.onEnterFrame = function() {
	if(_root._ymouse > Stage.height - 100) {
		this._x += ((Stage.width / 2) - _root._xmouse) / 20;
		if(this._x >= 0) this._x = 0;
		if(this._x <= Stage.width - this._width)this._x = Stage.width - this._width;
		this._parent.thumbz_mc._x = this._x;
	}
};*/
film_mc.onEnterFrame = function() {
	if(_root._ymouse > _root.boundry._height - 100) {
		this._x += ((_root.boundry._width / 2) - _root._xmouse) / 20;
		if(this._x >= 0) this._x = 0;
		if(this._x <= boundry._width - this._width)this._x = boundry._width - this._width;
		this._parent.thumbz_mc._x = this._x;
	}
};

init();

It basically is loading external jpg’s into the film_mc (which is basically like an infinite menu). When you click on one of the thumbs it loads the pic into the holder_mc.

The problem is the way the menu works when mousing around. It works fine if you uncomment the above code and comment out the other onEnterFrame when the movie stage size is set to 375x200. In the above code I am trying to use this in a larger stage size so I tried to designate a movieclip as the “stage size” named boundry.
Hopefully someone can figure this out by checking out the script, but i can figure out a way to get you fla if you’d like.
Thanks to anyone willing to help! :beer: