Flash iOS Apps Cookbook


Flash iOS Apps Cookbook
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$21.00
save 30%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$70.99
save 11%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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.

Chapter 14

Chapter 15

Appendix A

Appendix B

Book Details

Language : 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, Mobile Application Development, Flash, iOS, Mobile, Cookbooks

Table of Contents

Preface
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
Index
  • Chapter 1: Getting Started with iOS App Development
    • Introduction
    • 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
      • Introduction
      • 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
        • Introduction
        • 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
          • Introduction
          • 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
            • Introduction
            • 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
              • Introduction
              • 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
                • Introduction
                • 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
                  • Introduction
                  • 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 10: Camera and Microphone Support
                      • Introduction
                      • 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
                        • Introduction
                        • 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
                          • Introduction
                          • 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
                            • Introduction
                            • 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

                            Christopher Caleb

                            Christopher Caleb is lead Flash developer at WeeWorld - an avatar-based social game and virtual world for teens. He's particularly passionate about mobile development and has considerable experience creating Flash-based apps and prototypes for various platforms including Symbian, iOS and Android. You can find Christopher's random thoughts and links to articles he's written at: http://www.yeahbutisitflash.com. You can also follow him on Twitter: @chriscaleb
                            Sorry, we don't have any reviews for this title yet.

                            Code Downloads

                            Download the code and support files for this book.


                            Submit Errata

                            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.

                             

                            Sample chapters

                            You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                            Frequently bought together

                            Flash iOS Apps Cookbook +    Microsoft BizTalk Server 2010 Patterns =
                            50% Off
                            the second eBook
                            Price for both: $43.05

                            Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                            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.

                            In Detail

                            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.

                            Approach

                            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.

                            Code Download and Errata
                            Packt Anytime, Anywhere
                            Register Books
                            Print Upgrades
                            eBook Downloads
                            Video Support
                            Contact Us
                            Awards Voting Nominations Previous Winners
                            Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                            Resources
                            Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software