Flash Mobile Developing Andoid and IOS Applications

Setting up Flash CS5 for Android Development …………………………………………. 3
Designing and Developing for Android Hardware ……………………………….. 7
Configuring the Android SDK Publish Setting …………………………………… 12
Setting up Flash CS5 for Android Development ………………………………… 15
Installing Your AIR Application onto an Android OS …………………………… 17
Building Your First Application for Android Using Flash CS5 ……………… 18
Project 1: Creating Your First App Using Flash CS5 ………………………………… 27
Setting up Your Development Environment ………………………………………. 27
Creating the Graphics ………………………………………………………………………. 35
Building an Application ……………………………………………………………………. 37
Running Your App on Your Android Phone ………………………………………… 43
Section 2
Rapid Android Development in Flash CS5 ……………………………………………….. 49
Creating Content for Your Android Phone That Does
Not Require Programming ……………………………………………………………….. 49
Animation Techniques You Should Use on Mobile Devices ………………… 50
Controlling Sound …………………………………………………………………………… 71
Controlling Video …………………………………………………………………………….. 80
Working in the Third Dimension ……………………………………………………….. 83
What You Have Learned …………………………………………………………………… 86

Developing Mobile Apps using ActionScript ………………………………………… 101
Enabling Flash to Execute Solutions Faster with AVM 2.0 ………………… 102
What You Can Expect When You Use AS3 ……………………………………….. 102
Controlling Data ………………………………………………………………………………11 3
Controlling Text ……………………………………………………………………………….11 6
Drawing with the Shape Class ………………………………………………………….11 7
Using ActionScript to Control Animation, Audio, and
Video in Your Android Apps ……………………………………………………………..11 8
Extending Flash with Open Source Libraries …………………………………… 125
Summary ………………………………………………………………………………………. 125
Project 3: Building Sprite’s 123 ……………………………………………………………… 127
Setting Up the Project to Run on an iPhone …………………………………….. 128
Setting Up the Timeline………………………………………………………………….. 131
Adding Interaction to Your Number Screens …………………………………… 134
Completing the Application ……………………………………………………………. 137
Section 4
Leveraging Custom iPhone and Android Interface
Calls with ActionScript ………………………………………………………………………….. 141
Using Gestures in Your Apps ………………………………………………………….. 142
Working with Gestures …………………………………………………………………… 146

Which Way Is Up? Controlling Orientation with
the Android Accelerometer …………………………………………………………….. 150
Knowing Where You Are, Using Geolocation …………………………………… 152
Loading RSS Data into Flash ………………………………………………………….. 153
Adding Permissions to Your Apps …………………………………………………… 156
Loading Web Pages into the StageWebView ……………………………………. 157
Controlling the Use of the Microphone …………………………………………… 159
Controlling the Camera ………………………………………………………………….. 161
Additional Features on AIR 2.5 for Android ……………………………………… 164
Summary ………………………………………………………………………………………. 164
Project 4: Building a Gesture-Driven Application ………………………………… 165
Getting Started ………………………………………………………………………………. 165
Navigating Using the Tap Gesture …………………………………………………… 167
Adding a Swipe Gesture to Move from One Screen to the Next ……….. 172
Adding Drag and Drop Gestures …………………………………………………….. 174
Using Geolocation to Find Where You Are ………………………………………. 176
Summary ………………………………………………………………………………………. 178
Section 5
Building Games with Flash for the Mobile Market ……………………………….. 181
Getting Started with Game Development ……………………………………….. 181
Making It Easier to Write Code with Libraries ………………………………….. 184
Using Game Engines ……………………………………………………………………… 203
Developing Your Game …………………………………………………………………… 240
Project 5: Building a Mobile Game ……………………………………………………….. 241
Playing Space Rocket …………………………………………………………………….. 242
Getting Started ………………………………………………………………………………. 242
Game Assets and Default Layer Structure ……………………………………….. 244
Adding the Code to the Game ………………………………………………………… 245
Controlling the Missiles …………………………………………………………………. 251
Controlling the Falling Rocks ………………………………………………………….. 254

Section 6
Deploying Mobile Apps with Flash CS5 …………………………………………………. 259
Deploying Your Apps to Apple’s iTunes ……………………………………………. 259
Deploying Your Apps to Google’s Android Market ……………………………. 266
Building for iPad Devices ……………………………………………………………….. 268
Building for Tablets and TV …………………………………………………………….. 269
Adding Advertising to Your Apps …………………………………………………….. 270
Tracking Your App’s Success …………………………………………………………… 270
Marketing Your Apps ……………………………………………………………………… 271
Summary ………………………………………………………………………………………. 272
Project 6: Publishing Your Apps into the Many Different App Stores …… 273
Choosing Where to Sell Your Application ………………………………………… 273
Publishing Android Apps in Your Own Store ……………………………………. 274
Deploying to the Android Market ……………………………………………………. 275
Running the Gauntlet That Is Apple’s iTunes
App Store Submission Process ………………………………………………………. 277
Index …………………………………………………………………………………………….. 283

Telecharger PDF

Leave a Reply