 	                	var maskComp:UIComponent = _mask as UIComponent;          	
 		                if (maskComp)
 		                {
-		                	if (elementHost)
+		                	if (parent)
 		                	{
 		                		// Add the mask to the UIComponent document tree. 
 		                		// This is required to properly render the mask.
-		                		UIComponent(elementHost).addingChild(maskComp);
+		                		UIComponent(parent).addingChild(maskComp);
 		                	}
 		                	
 		                	// Size the mask so that it actually renders

        var result:Number = y;
        if(layoutFeatures != null && layoutFeatures.offsets != null)
            result +=  layoutFeatures.offsets.y;    
        return sharedDisplayObject && sharedDisplayObject != elementHost ? result - sharedDisplayObject.y : result;
    }
    
    //----------------------------------

    protected var _host:GroupBase;

    /**
     *  The is a temporary property, which will be removed when all references to 
     *  elementHost have been removed.
     */
    public function get elementHost():GroupBase
    {
