Using hardware keys


show more Using hardware keys 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 ...

Using hardware keys

The great thing about Android devices is that they have physical buttons that you can use to add additional functionality to your game. Those buttons include the Options menu, the Search button, as well as the Back button. And probably the most common used is going to be that Options button, or Options menu, because again, you can use it to add, for instance, this Options menu that I have right here. So just turn off the introScreen, and you will see it right there. It's called Options menu. And that's what I want to toggle on and off when you click on that Options key on the actual device.

And I am going to add some functionality by using code snippets. So refer to the Code Snippets video if you don't have this Mobile Game folder. And if I scroll down, Mobile menu key, that's what I want to use. I will just double-click on it to add that functionality. And now I can put everything in its proper place. So all variables actually are going to be at the top, so I will take t...

Using hardware keys
Video duration: 5m 53s 3h 35m Intermediate

Viewers:

Using hardware keys 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 ...