I've got 3 arrays (Chapter, Lesson, Page) that I'm trying to build dynamically as an expanding drop-down menu in as3 and I've hit a wall...early on...

After looking around for an as3 duplicateMovieClip solution, I settled on senocular's duplicateDisplayObject to create the initial Chapter buttons (which, when clicked, will expand to display the Lesson button, and so on for the Page buttons).

I've got the buttons duplicating, but don't know how to set references up for the buttons, update text within the buttons, call them from other functions to move them, etc...this may not even be the right solution for what I need, but nothing seems straight-forward anymore in as3...

Here's what I've got so far:

Code:
function duplicateClickHandler() {
	for (var i in chpArray) {
		var newInstance:DisplayObject=duplicateDisplayObject(mainMenu_mc.menuBtn_mc,true);
		newInstance.y+=(20*i);
		newInstance.i+=i;
		newInstance.title_txt.htmlText=String(chpArray[i]);		
	}
}
The last 2 lines return undefined property errors...

Using as3 (obviously) and CS4

Thanks!!