Skip to content

Instantly share code, notes, and snippets.

@marchbold
Last active October 22, 2016 01:23
Show Gist options
  • Save marchbold/c7ad61f8455a8afc364a to your computer and use it in GitHub Desktop.
Save marchbold/c7ad61f8455a8afc364a to your computer and use it in GitHub Desktop.
Setting the Application Display Mode
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