             text += line;
         }
         _field.text = text;
-        _field.setTextFormat(format);
+        _field.setTextFormat(_unlitFormat);
         _field.x = (loaderInfo.width - _field.width) / 2;
         _field.y = (loaderInfo.height - _field.height) / 2;
+
+        // create the highlight bitmap data and highlight array
+        _highlightData = new BitmapData(bounds.width, bounds.height, false);
+        _highlights = new Array(_width * _height);
 
         // add the context menu to change colors
         contextMenu = new ContextMenu();

            for (var kk :int = 0; kk < captions.length; kk++) {
                if (captions[kk] == caption) {
                    _field.textColor = colors[kk];
                    contextMenu.customItems[kk].enabled = false;
                } else {
                    contextMenu.customItems[kk].enabled = true;


package {

import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Sprite;

import flash.events.ContextMenuEvent;
