Reverted a recent change: I was shutting down when we were detached from
our parent, but we don't want to do that for most sprites which are shutdown anyway in a more managed way, and specifically our avatar sprite is re-used as we move from room to room. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4366 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -230,14 +230,6 @@ public class MediaContainer extends Box
|
|||||||
height = NaN;
|
height = NaN;
|
||||||
}
|
}
|
||||||
|
|
||||||
override public function parentChanged (p :DisplayObjectContainer) :void
|
|
||||||
{
|
|
||||||
super.parentChanged(p);
|
|
||||||
if (p == null && _media != null) {
|
|
||||||
shutdown();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the width of the content, bounded by the maximum.
|
* Get the width of the content, bounded by the maximum.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user