
Код:
for (i = cCounter - 1; i >= 0; i--) {
hit = _root['new' + i];
var clip = _root.allComments.createEmptyMovieClip ('comment' + i, i);
clip._x = 10;
clip._y = starty;
starty += 90;
clip.createTextField ('head',0,0,0,200,18);
clip.head.html = true;
var head_txt:String = "<p class='head'>" + hit.header + "</p>";
clip.head.htmlText = head_txt;
styles.onLoad = function (success:Boolean) {
if (success) {
clip.head.styleSheet = styles;
clip.head.htmlText = head_txt;
}
};
styles.load (css_url);
Почему стиль применяется только к последнему объекту?
