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:
@@ -78,6 +78,13 @@ import com.threerings.util.Util;
|
|||||||
*/
|
*/
|
||||||
[Event(name="init", type="flash.events.Event")]
|
[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
|
* 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
|
* 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
|
protected function didShowNewMedia () :void
|
||||||
{
|
{
|
||||||
// nothing right now, but call super() you overriders.
|
dispatchEvent(new Event(Event.COMPLETE));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user