Need help with my array

Hi…there…

okay I got some bunch of array…and when I just tracing like ‘this.ivar’ it will perfectly tracing the array like 0,1,2,3 but when I trying tracing like “contentArr[this.ivar]” the result is undefined …so where exactly my wrong…hope someone will give me some shed on light…thansk anyway…

here’s the code



include "lmc_tween.as"

var txtArr:Array = ["sdasds","sdasds","sdsd","sdsadsd"];
var contentArr:Array = [contentHold.content0,contentHold.content1,contentHold.content2,contentHold.content3];

var i:Number = 0;
var Speed:Number = 150;
var elasticSpeed:Number = .5;
this.createEmptyMovieClip("paper", 1);
paper._x = 20;
paper._y = 90;


function makeButton() {
	if (i<txtArr.length) {
			var btn = paper.attachMovie("naviBtn", "naviBtn"+i, i);
			bunyi1.start(0,1);
			btn.ivar = i;
			btn._x = 33;
			btn._y = i*(btn._height)+100;
			btn._xscale = 0;
			btn._yscale = 0;
			btn.bounceMe();
			btn.theText.text = txtArr*;			
			btn.onRollOver = function(){
				this.gotoAndPlay(2);
				this.theText.textColor  = 0xFFFFFF;
			}
			btn.onRollOut = function(){
				this.gotoAndPlay(16);
				this.theText.textColor  = 0x000000;
			}
			btn.onPress = function(){
				//trace(this.ivar);//output 0,1,2,3
				trace(contentArr[this.ivar]);//output undefined!! really need help with it..
			}
		i++;
	} else {
		clearInterval(id);
		gotoAndPlay(21);
		//trace("done");
	}
}
MovieClip.prototype.bounceMe = function() {
	this.scaleTo(100, elasticSpeed, "easeOutElastic");
};
id = setInterval(makeButton, Speed);



tq again