Return to Snippet

Revision: 66594
at June 1, 2014 04:41 by RiveraEraGames


Initial Code
//ITS THE RIVERA ERA
//THE FIRST PUERTO RICAN URBAN AMERICAN DEVELOPER
import flash.events.Event;
import flash.events.KeyboardEvent;

stage.addEventListener(Event.ENTER_FRAME, handlekeys);

function handlekeys(event: KeyboardEvent):void
{
	if (event.keyCode == Keyboard.BACK)
	{
		NativeApplication.nativeApplication.exit();
	}
}

Initial URL


Initial Description
Allows for EXIT function on mobile device via mobile device BACK key button.

Initial Title
Mobile Device BACK KEY PRESS Exit

Initial Tags
mobile, android

Initial Language
ActionScript 3