Dispatch a COMPLETE event when we finish loading media.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@679 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Ray Greenwell
2008-10-31 00:10:46 +00:00
parent df7fdc5e81
commit 7ac5d036de
@@ -78,6 +78,13 @@ import com.threerings.util.Util;
*/
[Event(name="init", type="flash.events.Event")]
/**
* Dispatched when we've shown new media.
*
* @eventType flash.events.Event.COMPLETE
*/
[Event(name="complete", type="flash.events.Event")]
/**
* Dispatched when we've unloaded our content... always. The LoaderInfo's UNLOAD event
* is only dispatched if the INIT event has already been dispatched and not if you cancel a
@@ -231,7 +238,7 @@ public class MediaContainer extends Sprite
*/
protected function didShowNewMedia () :void
{
// nothing right now, but call super() you overriders.
dispatchEvent(new Event(Event.COMPLETE));
}
/**