Created
December 15, 2012 18:45
-
-
Save anonymous/4298041 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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