         if (_mask !== value)
         {
             if (_mask && _mask.parent === this)
-            {       
-                super.removeChild(_mask);
+            {
+				overlay.removeDisplayObject(_mask);
             }     
             
             _mask = value;

        }
    }

    //----------------------------------
    //  resizeMode
    //----------------------------------
    

import spark.components.ResizeMode;
import spark.core.IViewport;
import spark.core.MaskType;
import spark.events.DisplayPlaneObjectExistenceEvent;
import spark.layouts.BasicLayout;
import spark.layouts.supportClasses.LayoutBase;
import spark.primitives.shaders.LuminosityMaskShader; 
