1 / 20

Chapter 12

Chapter 12. Developing Mobile Applications. Chapter 12 Lessons. Use the Mobile Content Simulator Repurpose mobile applications Use the Accelerometer Use touch and gesture events. Use the Mobile Content Simulator.

gigi
Download Presentation

Chapter 12

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 12 Developing Mobile Applications

  2. Chapter 12 Lessons • Use the Mobile Content Simulator • Repurpose mobile applications • Use the Accelerometer • Use touch and gesture events

  3. Use the Mobile Content Simulator • Throughout the development process it is important to test the application to determine it is performing as planned. • Flash provides a new feature in CS6 called the Mobile Content Simulator, which allows you to simulate the use of an application on a mobile device, specifically a smartphone.

  4. Use the Mobile Content Simulator • The AIR Debug Launcher (Mobile) is used to test a mobile application. • After selecting the AIR Debug Launcher (Mobile), two windows appear. • The Content Simulator window is used to simulate the movement of the phone and the actions of the user.

  5. Use the Mobile Content Simulator Simulator Window

  6. Use the Mobile Content Simulator • The other window that appears is the AIR preview window

  7. Use the Mobile Content Simulator Information about the file is then displayed in the Output panel.

  8. Repurpose Mobile Applications • A goal of mobile developers is to be able to create one application and use it for a variety of phones and tablets. • This reduces development time and allows assets, such as photos, graphics and text to be reused.

  9. Repurpose Mobile Applications

  10. Repurpose Mobile Applications • While applications can be made scalable, developers need to set an initial target including the device type and operating system. • The most popular smartphones run the Android operating system or the Apple iOS operating system used on the iPhone.

  11. Use the Mobile Content Simulator Select this option to have objects on the Stage resize as the Stage dimensions are changed

  12. Use the Mobile Content Simulator Stage objects scaled as the Stage size is changed

  13. Use the Accelerometer • When playing games on a mobile device one of the most often used features is having objects move in response to the movement of the device. That is, the user tilts or rotates the device and an object(s) moves. • The device’s built-in accelerometer controls this movement and ActionScript code in Flash controls the accelerometer.

  14. Use the Accelerometer Code to access the device’s accelerometer

  15. Use the Accelerometer Code to keep the object on the screen

  16. Use the Accelerometer • Flash provides several templates for developing mobile applications for Android devices. • You can use a number of options available in the New from Template dialog box.

  17. Use the Accelerometer

  18. Use Touch and Gesture Events You can use the Mobile Content Simulator to test an application that includes Touch and Gesture events, such as drag, swipe, and zoom.

  19. Use Touch and Gesture Events Code snippet for the Swipe to Go to Next/Previous Frame and Stop mobile action

  20. Use Touch and Gesture Events New from Template dialog box with the Swipe Gallery template selected

More Related