Handling exits and idle mode


show more Handling exits and idle mode provides you with in-depth training on Developer. Taught by Paul Trani as part of the Flash Professional CS5: Creating a Simple Game for Android Devices show less
please wait ...

Handling exits and idle mode

As you're developing your game, you need to keep in mind how this is going to play on an actual device. In the case of this game, since we're controlling the player based on the accelerometer by tilting the device, we're not touching the screen at all, so, there is a chance that the screen could actually dim while we're playing game. So I actually want to keep the screen awake, is a mobile- specific thing I want to do, as well as I want to make sure this Exit button works. So let's go ahead and take a look at that. I am going to use a code snippet in order to do that, and just refer to the Code Snippets movie if you don't have this Mobile Game folder.

I am going to scroll down, right down here, Keep Screen Awake. So I am going to double-click on that, and that's going to add these two lines. All right! So this looks good, and this is really going to be mobile-specific technology that we're dealing with. Let me just hit Enter a couple times. So keep the screen...

Handling exits and idle mode
Video duration: 3m 31s 3h 35m Intermediate

Viewers:

Handling exits and idle mode provides you with in-depth training on Developer. Taught by Paul Trani as part of the Flash Professional CS5: Creating a Simple Game for Android Devices

please wait ...