PrimaryFeather/Starling-Framework — pull request #84 by fogAndWhisky (2012-04-04 19:24:45+00:00)
Title: New Event: starling.events.Event.ROOT_CREATED

Since Starling is founded on the instantiation of a RootClass, it's important for listeners outside Starling to know when the instance of that RootClass is available. And because Starling both creates and adds that instance to stage, there's no determinative way to know this has occurred at present. I've added a dispatch from Starling.initializeRoot(). This Event occurs after rootObject is added to Stage, so it effectively informs listeners that Starling is safe to interact with.

Arguably there should be two Events: one when the rootObject is created and a second when rootObject is added to stage. This would let a listener perform actions between those two Events. I'll leave it to you to determine if the extra event is useful, but I'm reasonably certain that at least the code I've provided is beneficial.