                 {
                     // TODO (jszeto): Does this need to be attached to a sibling?
                     overlay.addDisplayObject(_mask, OverlayDepth.MASK);
-                    var maskComp:UIComponent = _mask as UIComponent;
-                    if (maskComp)
-                    {
-                        // Update properties and resize mask and all children.
-                        UIComponentGlobals.layoutManager.validateClient(maskComp, true);
-                        maskComp.setActualSize(maskComp.getExplicitOrMeasuredWidth(), 
-                                               maskComp.getExplicitOrMeasuredHeight());
-                    }
+                    
+                    MaskUtil.applyMask(_mask, null);
                 }
             }
         }

import flash.events.Event;
import flash.events.MouseEvent;
import flash.filters.ShaderFilter;
import flash.geom.Rectangle;

import mx.core.IVisualElement;

            }
        }
    }
    
}

}
