Два цвета в одном текстовом поле с помощью Actionscript 3

Возможно ли иметь два цвета текста в одном текстовом поле с помощью Actionscript 3.0?

например: как сделать так, чтобы первая строка была черной, а вторая красной?

Вот мой код при использовании одного цвета:

    public function logs(txt)
    {
        if (txt == '')
        {
            textLog.text = "Let's Open up our treasure boxes !!!";
        }
        else
        {
            textLog.text = '' + txt + '';
        }
        textLog.x = 38.60;
        textLog.y = 60.45;
        textLog.width = 354.50;
        textLog.height = 31.35;
        textLog.selectable = false;
        textLog.border = false;
        var format:TextFormat = new TextFormat();
        var myFont:Font = new Font1();
        format.color = 0x000000;
        format.font = myFont.fontName;
        format.size = 18;
        format.align = TextFormatAlign.CENTER;
        format.bold = false;
        textLog.embedFonts = true;
        textLog.setTextFormat(format);
        this.addChild(textLog);
    }
11
задан Fester 16 September 2015 в 09:11
поделиться