Skip to content

Instantly share code, notes, and snippets.

Created December 15, 2012 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4298041 to your computer and use it in GitHub Desktop.
Save anonymous/4298041 to your computer and use it in GitHub Desktop.
...
private var _theme:MetalWorksMobileTheme;
public function RootView()
{
if (stage) init();
else addEventListener(starling.events.Event.ADDED_TO_STAGE, init);
}
private function init(event:starling.events.Event = null):void
{
if (hasEventListener(starling.events.Event.ADDED_TO_STAGE))
removeEventListener(starling.events.Event.ADDED_TO_STAGE, init);
_theme = new MetalWorksMobileTheme(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment