Tutorials

swiftswallowSwift

I. Swift for Flash and ActionScript developers

Use your Flash and ActionScript to code in Swift 1. Use your Flash skills to code with Swift
2. Swift resources for Flash and ActionScript developers
3. “Migrating to Swift from Flash and ActionScript” book

Native Extensions 101

 

I. Native extension basics

We start with what an ANE is and how it fits in your app on the platforms that Adobe AIR supports. 1. What are Adobe AIR Native Extensions?
2. How does an AIR Native extension fit in your app? (iOS, Android, Mac OS, Windows)
3. What goes into an AIR Native Extension?
3.1. What goes into an ANE for iOS?
3.2. What goes into an ANE for Android?
3.3. What goes into an ANE for Mac OS?
3.4. What goes into an ANE for Windows?

IV. Making your life easier: automatic ANE packaging

Let’s face it: the usual way of packaging an ANE and packaging an app that uses it requires too much clicking, file copying and the like. How about we automated that to happen on a single-click? Even better: a single click in Flash Builder… 1. Recipe for packaging an ANE
2. Automatic ANE packaging
3. Package your ANE in Flash Builder
4. Package your app + ANE with one click in Flash Builder
5. 7 things you need to know about Ant scripts

iOS Native Extensions

 

I. iOS 8 Extensions: show your AIR app in the Share Menu

In this tutorial we go over how AIR apps can be extended to take advantage of some of the new iOS 8 features and in particular how to get an AIR app to be shown in the iOS 8 Share Menu. Part 1: What are iOS Extensions?
Part 2: How to list an AIR app in the iOS Share Menu 15-20 minutes
Part 3: How to launch your AIR app from the iOS 8 Share Menu 20-25 minutes
Part 4: Sharing files between an AIR app and an iOS Extension 10-15 minutes
Part 5: How to debug your iOS extension 5-7 minutes
The source code for this tutorial, complete with build scriptsis available here.

 

II. iOS 8: are your ANE and apps 64-bit/universal?

The new requirements from Apple say they should be. Here is how to check and make sure they are.

 

III. Record your screen

Learn how to record your game’s screen and let players watch the replays. Record Starling gameplay video
Record off-screen video in Starling

 

IV. Control the native camera

In this 8-part tutorial you’ll see how to connect to the iOS camera in Objective-C, capture frames from it and display live feed in your AIR app. Camera Tutorial: introduction
Part 1: Create a test app 15-20 minutes
Part 2: Set up the Xcode project 8-10 minutes
Part 3: Set up the AIR Library 8-10 minutes
Part 4: Connect to the camera in Objective-C 15-20 minutes
Part 5: Start the camera from ActionScript 5-6 minutes
Part 6: Grab frames from iOS camera 15-20 minutes
Part 6A: Fake triple buffering 5-7 minutes, optional
Part 7: Pass video frames to ActionScript 15-20 minutes
Part 8: Stop the camera 6-7 minutes
New release: for more features and Android camera support, check out our Camera Driver ANE for iOS and Android.

V. Data conversion between iOS and ActionScript

In this series of articles you will build an arsenal of helper functions that turn lengthy Objective-C code into one-liner, which you can reuse in the native part of your iOS ANEs. Code you will write will be Objective-C and will go into the Objective-C library that’s part of your ANE. Keeping your cool while translating between ActionScript and Objective-C: introduction
Some ground work: How ActionScript data is represented in C 10-15 minutes
Auxiliary functions, Part 1: Sending events from Objective-C to ActionScript 10-15 minutes
Auxiliary functions, Part 2: One-liner for checking FREResult 5-10 minutes
Auxiliary functions, Part 3: Handling exceptions from FRE* functions 5-10 minutes
Auxiliary functions, Part 4: Changing the properties of ActionScript objects in your iOS native code 5-10 minutes
Auxiliary functions, Part 5: Reading properties of ActionScript objects in your iOS native code 5-10 minutes
Info: For a comprehensive data conversion guide and how to make it into a library download our eBook “iOS vs. ActionScript Data Types Guide”.

 

VI. Archive: Email ANE articles

Tips and tricks for getting the iOS email client to cooperate… Email native extension – iOS7 fix
A long saga: Apple vs. Adobe and the email client orientation

 

VII. Archive: Using Dropbox

This tutorial shows you how to link your AIR app with Dropbox, using the Dropbox native login window. Linking with Dropbox from an AIR mobile app

 

VIII. Archive: iOS ANE tips and tricks

Tips and tricks for specific iOS issues Making AIR native extensions: orientation on iOS 6

Android Native Extensions

 

II. Tools of the trade

Unlike AIR native extensions for iOS, where you can debug either the native code or the ActionScript code, on Android you have the option to debug all of your code at the same time. This post shows you how to debug your Android ANE on a device via USB both in Flash Builder/Flash Pro and in Eclipse. How to debug your Android ANE

Windows Native Extensions

 

I. Windows ANE Tutorial

This tutorial takes you step-by-step through the process of making, integrating and debugging an ANE for Windows. Windows ANE tutorial: introduction
Part 1: The native DLL project 8-10 minutes
Part 2: The Native DLL code 10-15 minutes
Part 3: Set up the AIR Library 8-10 minutes
Part 4: Part 4: Packaging the ANE 10-12 minutes
Part 5: Testing the ANE 12-15 minutes
Part 6: Debugging the ANE 15-20 minutes
Opt In Image
Early bird offer on the ANE eBooks

 

Buy any Easy Native Extensions 2nd Edition package and get our $99 iOS + Android ANE Template completely free before the end of June 2015.

 

 

  • step-by-step guide to making your iOS extension in under an hour
  • library for data conversion between ActionScript and native code
  • tutorials
  • infographics
  • code included