 import mx.core.IFontContextComponent;
 import mx.core.IUIComponent;
 import mx.core.Singleton;
+import mx.core.UIComponent;
 import mx.core.mx_internal;
 import mx.managers.ISystemManager;
 
 import spark.components.supportClasses.TextBase;
 import spark.core.CSSTextLayoutFormat;
+import spark.core.MaskType;
+import spark.utils.MaskUtil;
 import spark.utils.TextUtil;
 
 use namespace mx_internal;

		invalidateDisplayList();
    }
    
	//----------------------------------
	//  textFlow
	//----------------------------------

            _textFlow.addEventListener(DamageEvent.DAMAGE, 
                                       textFlow_damageHandler);
		}
        
        if (maskChanged)
        {
            MaskUtil.applyMask(mask, parent);

            maskChanged = false;            
        }        
        
        if (luminositySettingsChanged)
        {
            MaskUtil.applyLuminositySettings(
                mask, _maskType, _luminosityInvert, _luminosityClip);

            luminositySettingsChanged = false;             
        }

        if (maskTypeChanged)
        {
            MaskUtil.applyMaskType(
                mask, _maskType, _luminosityInvert, _luminosityClip, this);

            maskTypeChanged = false;
        }
	}
    
    /**
