Спасибо, это реализовано значительно лучше, чем даже как я хотел сделать

Только вот, сколько ни долблюсь одного не понимаю, почему делая мувик кнопкой я не могу получить инфу с атрибутов.

Код:
if (node.nodeName == 'node') {trace(node)
var message = this.attachMovie('mc', 'mc'+doc+'_'+i,
this.getNextHighestDepth());
message.txt.autoSize = true;
message.txt_var = node.attributes['label'];
message._y = startY;
message.onPress=function(){
_root.txt= node.attributes['label'];
}
startY+=30;
i++;
}
node = node.nextSibling;
}
}
}