Pass the url to configureMask().

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@259 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Ray Greenwell
2007-06-14 00:49:12 +00:00
parent dcc950e9d5
commit 6b8ab48d17
@@ -212,7 +212,7 @@ public class MediaContainer extends Sprite
// create a mask to prevent the media from drawing out of bounds // create a mask to prevent the media from drawing out of bounds
if (getMaxContentWidth() < int.MAX_VALUE && if (getMaxContentWidth() < int.MAX_VALUE &&
getMaxContentHeight() < int.MAX_VALUE) { getMaxContentHeight() < int.MAX_VALUE) {
configureMask(getMaxContentWidth(), getMaxContentHeight()); configureMask(url, getMaxContentWidth(), getMaxContentHeight());
} }
// start it loading, add it as a child // start it loading, add it as a child
@@ -542,7 +542,7 @@ public class MediaContainer extends Sprite
/** /**
* Configure the mask for this object. * Configure the mask for this object.
*/ */
protected function configureMask (ww :int, hh :int) :void protected function configureMask (url :String, ww :int, hh :int) :void
{ {
var mask :Shape; var mask :Shape;
if (_media.mask != null) { if (_media.mask != null) {