Trace array

Hi People,

what am I missing here:

button_titles = new Array();
button_titles[0] = "home";
button_titles[1] = "about us";
button_titles[2] = "products";
button_titles[3] = "services";
button_titles[4] = "location";
button_titles[5] = "contact";
button_titles[6] = "links";
// 
for (i=0; i<=6; i++) {
	if (i != 0) {
		duplicateMovieClip(button0_mc, "button"+i+"_mc", i);
		this["button"+i+"_mc"]._y = button0_mc._y+i*25;
	}
	this["button"+i+"_mc"].title_txt.text = button_titles*;
	this["button"+i+"_mc"].onRollOver = function() {
		this.highlight_mc.aTarget = 100;
		this.highlight_mc.aTarget2 = 100;
		this.tri_mc.xTarget = -9;
		this.tri_mc.xTarget2 = -9;
		this.title_txt.textColor = "0x000000";
	};
	this["button"+i+"_mc"].onRollOut = function() {
		this.highlight_mc.aTarget2 = 0;
		this.tri_mc.xTarget2 = -19;
		this.title_txt.textColor = "0xffffff";
	};
	
		this["button"+i+"_mc"].onRelease = function() {
		trace(button0_mc.title_txt);
	};
	
}

Im trying to trace the content of the button pressed and then have the consequent action take place.... Im getting “undefined” for my onRelease trace.

Thx,
m.

This should work.

trace(this.title_txt.text);

I could have sworn that I tried that! … well 999 thanks a bunch - copypaste your code worked just fine! thx a bunch
m.