Redispatch the INIT event when we get it.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@384 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -67,6 +67,14 @@ import com.threerings.util.Util;
|
||||
*/
|
||||
[Event(name="mediaSizeKnown", type="com.threerings.util.ValueEvent")]
|
||||
|
||||
/**
|
||||
* Dispatched when we've initialized our content. This is merely a redispatch
|
||||
* of the INIT event we get from the loader.
|
||||
*
|
||||
* @eventType flash.events.Event.INIT
|
||||
*/
|
||||
[Event(name="init", type="flash.events.Event")]
|
||||
|
||||
/**
|
||||
* A wrapper class for all media that will be placed on the screen.
|
||||
* Subject to change.
|
||||
@@ -534,6 +542,9 @@ public class MediaContainer extends Sprite
|
||||
protected function handleInit (event :Event) :void
|
||||
{
|
||||
_initialized = true;
|
||||
|
||||
// redispatch
|
||||
dispatchEvent(event);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user