Last active
October 22, 2016 01:23
-
-
Save marchbold/c7ad61f8455a8afc364a to your computer and use it in GitHub Desktop.
Setting the Application Display Mode
This file contains hidden or 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
Application.init( APPLICATION_KEY ); | |
if (Application.isSupported) | |
{ | |
Application.service.addEventListener( ApplicationEvent.UI_NAVIGATION_CHANGED, uiNavigationChangedHandler ); | |
// Hide the on screen navigation controls | |
Application.service.setDisplayMode( ApplicationDisplayModes.UI_NAVIGATION_HIDE ); | |
} | |
function uiNavigationChangedHandler( event:ApplicationEvent ):void | |
{ | |
// This can come from the setDisplayMode function or from user interaction | |
trace( event.type + "::"+event.option ); | |
} | |
// com.distriqt.Application |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment