Skip to content

Instantly share code, notes, and snippets.

@wouterds
Created December 16, 2012 10:21
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 wouterds/4306113 to your computer and use it in GitHub Desktop.
Save wouterds/4306113 to your computer and use it in GitHub Desktop.
Centeren nativeWindow
stage.nativeWindow.x = (Screen.mainScreen.bounds.width - stage.nativeWindow.width) * .5;
stage.nativeWindow.y = (Screen.mainScreen.bounds.height - stage.nativeWindow.height) * .5;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment