Set text of duplicated items

Okay,

I’m duplicating a number of mc’s (let’s say 5)


space = 0.5;
for (i=1; i<=5; i++) {
    duplicateMovieClip("tab", "tab"+i, i);
    eval("tab"+i)._x = i*(space+tab._width);
}
MovieClip.prototype.settext = function(text, letter) {
    this.btn_nfo = text;
    this.sym.letter = letter;
};
tab1.settext(info, l);
tab2.settext(etc, E);
//etc.etc.

But that doesn’t work … at least the prototype. If I set it without a proto it works just fine (een.btn_nfo = “info”). But I want to have one button, duplicate it 5 times, and set the dynamic textfields individually …

Perhaps any thoughts?

:smirk: