     /**
      * Configure the mask for this object.
      */
-    protected function configureMask (ww :int, hh :int) :void
+    protected function configureMask (rect :Rectangle) :void
     {
         var mask :Shape;
         if (_media.mask != null) {

    protected function contentDimensionsUpdated () :void
    {
        // update the mask
        var maxW :int = getMaxContentWidth();
        var maxH :int = getMaxContentHeight();
        if ((maxW < int.MAX_VALUE) && (maxH < int.MAX_VALUE)) {
            // if we should do masking, then mask to the lesser of maximum and actual size
            configureMask(Math.min(maxW, _w), Math.min(maxH, _h));
        }
    }

    /**


        mask.graphics.clear();
        mask.graphics.beginFill(0xFFFFFF);
        mask.graphics.drawRect(rect.x, rect.y, rect.width, rect.height);
        mask.graphics.endFill();
    }

