Flash iOS Apps Cookbook
|Also available on:|
- Build your own apps, port existing projects, and learn the best practices for targeting iOS devices using Flash.
- How to compile a native iOS app directly from Flash and deploy it to the iPhone, iPad or iPod touch.
- Full of practical recipes and step-by-step instructions for developing iOS apps with Flash Professional.
Book DetailsLanguage : English
Paperback : 420 pages [ 235mm x 191mm ]
Release Date : February 2012
ISBN : 184969138X
ISBN 13 : 9781849691383
Author(s) : Christopher Caleb
Topics and Technologies : All Books, Flash, iOS, Mobile, Cookbooks
Table of ContentsPreface
Chapter 1: Getting Started with iOS App Development
Chapter 2: Building iOS Apps Using Flash
Chapter 3: Writing your First App
Chapter 4: Porting Flash Projects to iOS
Chapter 5: Multi-touch and Gesture Support
Chapter 6: Graphics and Hardware Acceleration
Chapter 7: Working with Text and the Virtual Keyboard
Chapter 8: Screen Resolution and Orientation Changes
Chapter 9: Geolocation and Accelerometer APIs
Chapter 10: Camera and Microphone Support
Chapter 11: Rendering Web Pages
Chapter 12: Working with Video and Audio
Chapter 13: Connectivity, Persistence, and URI Schemes
- Chapter 1: Getting Started with iOS App Development
- Joining the iOS Developer Program
- Accessing the iOS Provisioning Portal
- Generating a Certificate Signing Request using Windows
- Generating a Certificate Signing Request using Mac OS X
- Obtaining your development certificate
- Creating a P12 certificate using Windows
- Creating a P12 certificate using Mac OS X
- Registering a device
- Creating an App ID
- Creating a development provisioning profile
- Installing a provisioning profile on your device
- Chapter 2: Building iOS Apps Using Flash
- Installing the AIR SDK
- Creating an AIR for iOS document
- Adding content to the stage
- AIR for iOS general settings
- AIR for iOS deployment settings
- Compiling from Flash Professional
- Installing your app with iTunes
- Chapter 3: Writing your First App
- Creating a basic document class
- Preventing screen idle
- Handling multitasking
- Exiting gracefully from an app
- Linking classes to movie-clip symbols
- Using an update loop
- Including an application launch image
- Including icons
- Editing the application descriptor file
- Remote debugging
- Chapter 4: Porting Flash Projects to iOS
- Handling user interaction
- Saving application state
- Flattening the display list
- Converting vectors to bitmaps
- Resizing bitmaps
- Masking content
- Working with external SWFs
- Chapter 5: Multi-touch and Gesture Support
- Setting the touch point input mode
- Detecting multiple touch points
- Dragging multiple display objects
- Tracking movement
- Setting the gesture input mode
- Handling a swipe gesture
- Panning an object
- Rotating an object
- Zooming an object
- Chapter 6: Graphics and Hardware Acceleration
- Comparing vector and bitmap graphics
- Understanding GPU-Blend mode
- Understanding GPU-Vector mode
- Using Cache as Bitmap
- Using Cache as Bitmap Matrix
- Accessing bitmaps with ActionScript
- Loading bitmaps at runtime
- Working with sprite sheets
- Performing bitmap animation with ActionScript
- Chapter 7: Working with Text and the Virtual Keyboard
- Using device fonts within text fields
- Using embedded fonts within text fields
- Providing text entry
- Capturing text input
- Configurable panning with virtual keyboard activation
- Updating dynamic text fields
- Using native iOS text controls
- Chapter 8: Screen Resolution and Orientation Changes
- Targeting a device
- Targeting the Retina display
- Supporting multiple resolutions
- Setting the default aspect ratio
- Enabling auto-orientation
- Listening for orientation changes
- Responding to orientation changes
- Chapter 9: Geolocation and Accelerometer APIs
- Determining your current location
- Determining your speed and heading
- Checking for geolocation access
- Responding to accelerometer changes
- Detecting a shake
- Chapter 10: Camera and Microphone Support
- Saving to the camera roll
- Reading from the camera roll
- Capturing with the default camera app
- Working with the built-in cameras
- Recording microphone audio
- Playing recorded audio
- Chapter 11: Rendering Web Pages
- Opening a web page within Safari
- Rendering a web page within an app
- Navigating the browsing history
- Rendering a local web page
- Dynamically generating a local web page
- Capturing a snapshot of a web page
- Chapter 12: Working with Video and Audio
- Playing local FLV video
- Playing local H.264 video
- Controlling video
- Embedding audio
- Playing embedded audio
- Streaming audio
- Controlling audio playback
- Chapter 13: Connectivity, Persistence, and URI Schemes
- Monitoring Internet connectivity
- Specifying a persistent Wi-Fi connection
- Referencing an app's common directories
- Writing files
- Reading files
- Launching system applications
- Launching the App Store
- Launching the Maps application
- Declaring device capabilities
Download the code and support files for this book.
Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.
Errata- 5 submitted: last submission 10 Dec 2012
Errata type: Other | Page number: About the Reviewers | Errata date: 13 February, 12
Daniel Albu's website is: http://www.danielalbu.com.
Errata type: Technical | Page number: 22 | Errata date: 7 March, 12
Chapter 1, Obtaining your development certificate recipe: Step 9 assumes that the certificate you downloaded from the iOS Provisioning Portal is named developer_identity.cer. However, Apple has changed the name of this file to ios_development.cer. In order to successfully complete the steps detailed in the Creating a P12 certificate using Windows and Creating a P12 certificate using Mac OS X recipes, please rename the certificate file from ios_development.cer to developer_identity.cer.
Errata type: Technical | Page number: 25 | Errata date: 7 March, 12
Chapter 1, Creating a P12 certificate using Windows recipe: The command specified in step 3 assumes that the certificate you downloaded from the iOS Provisioning Portal is named developer_identity.cer. However, Apple has changed the name of this file to ios_development.cer. Before executing the command line statement, rename your certificate from ios_development.cer to developer_identity.cer.
Errata type: Technical | Page number: 27 | Errata date: 7 March, 12
Chapter 1, Creating a P12 certificate using Mac OS X recipe: Step 2 assumes that the certificate you downloaded from the iOS Provisioning Portal is named developer_identity.cer. However, Apple has changed the name of this file to ios_development.cer.
Errata type: Technical | Page number: 339 | Errata date: 4th April, 12
Chapter 12, Controlling video, step 13
If you attempt to test this recipe's code example from the desktop using the AIR Debug Launcher (ADL) you will receive the following runtime error:
RangeError: Error #1125: The index 0 is out of range 0. at Main()[/Users/username/Desktop/Flash iOS Apps Cookbook - Code Downloads/cs5.5/chapter12/recipe3-mp4-final/Main.as:31]
It should be noted that the AIR Debug Launcher (ADL) does not currently support H.264 video playback. Instead, simply publish your FLA using File | Publish, and deploy the resultant IPA to your iOS device for testing.
What you will learn from this book
- Configure and publish native iOS apps from Flash Professional CS5 or CS5.5.
- Start by quickly building and deploying a simple app to your iOS device.
- Target mobile screens and implement usability considerations.
- Best practices for porting existing Flash projects.
- Access input sensors including the touch-screen, the accelerometer, GPS and the virtual keyboard.
- Overcome performance and memory constraints.
- Work with Flash video and audio.
- Render web pages directly within your app.
The latest version of Flash Professional can directly target iOS, allowing Flash developers to write applications that will run natively on Apple's iPhone, iPad, and iPod touch. What's more, with Apple loosening its restrictions on third-party technologies, apps written in Flash can now be sold and distributed within the App Store.
Flash iOS Apps Cookbook provides the recipes required to build native iOS apps using your existing knowledge of the Flash platform. Whether you want to create something new or simply convert an existing Flash project, the relevant steps and techniques will be covered, helping you achieve your goal.
Learn how to configure and use Flash Professional for iOS development by writing and deploying a simple app to a device. Implement many iOS-specific features such a multi-touch, the virtual keyboard, camera support, screen orientation and the Retina display. Overcome the limitations of mobile development by mastering hardware acceleration and optimization. Whether you’re an enthusiast or professional developer, the Flash iOS Apps Cookbook is your toolkit to creating high-quality content for iPhone, iPad and iPod touch.
The book is written in a cookbook style, presenting examples in the style of recipes, allowing you to go directly to your topic of interest, or follow topics throughout a chapter to gain in-depth knowledge.
Who this book is for
Flash developers or enthusiasts looking to build iOS apps using their existing Flash and ActionScript 3.0 skills.