title: Two colors in one text field using Actionscript 3
body: <p>Is it possible to have two text colors in one text field using Actionscript 3.0? </p>
  
  <p>ex: how can i make like the first string black and the second string red?</p>
  
  <p>Here is my code when using a single color:</p>
  
  <pre><code>    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);
      }
  </code></pre>