Hi,
I have dynamic text a I need to make one line red, next one blue, next one black etc. But when I change color or italic style, Flash change all in the text box. Not only the new text. Where is a problem? Thanks...
function InsertText(NewText, NewColor, Italic) {
var NewFormat:TextFormat = new TextFormat();
NewFormat.italic = Italic;
NewFormat.color = NewColor;
_root.History.setNewTextFormat(NewFormat);
_root.History.text += NewText;
_root.History.scroll = _root.History.maxscroll;
}
I have dynamic text a I need to make one line red, next one blue, next one black etc. But when I change color or italic style, Flash change all in the text box. Not only the new text. Where is a problem? Thanks...
function InsertText(NewText, NewColor, Italic) {
var NewFormat:TextFormat = new TextFormat();
NewFormat.italic = Italic;
NewFormat.color = NewColor;
_root.History.setNewTextFormat(NewFormat);
_root.History.text += NewText;
_root.History.scroll = _root.History.maxscroll;
}