 
         if (!names)
         {
-            names = ALL_ATTRIBUTE_NAMES;
+            names = TextUtil.ALL_ATTRIBUTE_NAMES;
             
             needContainerAttributes = true;
             needParagraphAttributes = true;

        }
        else
        {
           for each (p in names)
            {
                kind = ATTRIBUTE_MAP[p];

                if (kind == CONTAINER)
                    needContainerAttributes = true;
                else if (kind == PARAGRAPH)
                    needParagraphAttributes = true;
                else if (kind == CHARACTER)
                    needCharacterAttributes = true;
            }
        }

import flash.text.engine.TextBlock;
import flash.text.engine.TextElement;
import flash.text.engine.TextLine;

import flex.events.TextOperationEvent;
import flex.utils.TextUtil;

import mx.core.UIComponent;

