Tutorials
We made these tutorials to save you time and we are told they are super easy to follow. See for yourself.
Here is what you will find:
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 | |
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? |
II. How to use a native extension |
|
Once you know what an ANE is, you see how to include it in an AIR app and what files you need to set for it to work. | 1. Communication between ActionScript and native code in an ANE (here be cartoons) |
2. What is an AIR Native Extension descriptor? | |
3. How to add a native extension to your app | |
4. How to fix Error 105: application.initialWindow.content contains an invalid value | |
5. How to fix Error: Type was not found or was not a compile-time constant | |
6. How to fix VerifyError: Error #1014: Class could not be found |
III. Extension runtime magic |
|
We start with what an ANE is and how it fits in your app on the platforms that Adobe AIR supports. | 1. Loading your ANE – order of operations |
2. Unloading your ANE – order of operations | |
3. Calling native functions from ActionScript | |
4. Extension Initializer and Finalizer in C | |
5. Extension Initializer and Finalizer in Java | |
6. What is the Extension Context? | |
7. How to send events from Objective-C to ActionScript | |
8. How to send events from Java to ActionScript | |
9. Native Extension Context Initializer and Finalizer | |
10. FREContextInitializer and FREContextFinalizer in C | |
11. FREContext in Java | |
12. AIR Native Extensions for iOS: infographics |
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 |
V. ANE tips and tricks |
|
And onto a few more advanced topics… | 1. Keeping your C native code reusable and independent of AIR |
2. Do you need a copy of FlashRuntimeExtensions.h in your project? | |
3. How to add event handlers to the AppDelegate in Objective-C | |
4. Asserting your way in ActionScript and Objective-C |
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 |
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 |
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 |
VI. ANE Template |
|
Want something that will save you hours of setting up from scratch? | This template will give you a kick-start with ANEs for iOS and Android. It’s complete with build scripts that let you compile, package and run your test app and ANE with a single click from Flash Builder. |
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 |
I. ANE Template |
|
Want something that will save you hours of setting up from scratch? | This template will give you a kick-start with ANEs for iOS and Android. It’s complete with build scripts that let you compile, package and run your test app and ANE with a single click from Flash Builder. |
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 |
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 |
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