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:
@@ -212,7 +212,7 @@ public class MediaContainer extends Sprite
|
||||
// create a mask to prevent the media from drawing out of bounds
|
||||
if (getMaxContentWidth() < int.MAX_VALUE &&
|
||||
getMaxContentHeight() < int.MAX_VALUE) {
|
||||
configureMask(getMaxContentWidth(), getMaxContentHeight());
|
||||
configureMask(url, getMaxContentWidth(), getMaxContentHeight());
|
||||
}
|
||||
|
||||
// start it loading, add it as a child
|
||||
@@ -542,7 +542,7 @@ public class MediaContainer extends Sprite
|
||||
/**
|
||||
* 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;
|
||||
if (_media.mask != null) {
|
||||
|
||||
Reference in New Issue
Block a user