Hello, fellow Flash developer! Did you find this page while looking for “the #Swift equivalent of this #ActionScript piece of code”? Or are you looking to transfer your #Flash skills into native #iOS development? In either case, you are in the right place. If you have spent some time making Flash apps and coding in ActionScript, you are well on your way to knowing your way around Swift and won’t need to start from scratch. We have collected some resources that can help on your learning journey: they have been created with your experience in mind and by developers who speak your language – after Read More
Yep. Finally. Yey! Among all the new content and code examples, the second edition of Easy Native Extensions comes with a whole additional book on converting data between ActionScript and native code for iOS. Share on: WhatsApp Read More
This tutorial shows you how to get an AIR app to appear in the iOS 8 Share Menu, using an iOS app extension. Something to keep in mind before we begin: an iOS app extension is different from an ANE. Share on: WhatsApp Read More
Today’s article is a response to a question we found ourselves answering quite a lot on the e-mail since the release of our Gameplay Recorder Native Extension for iOS. The question was: How does Gameplay Recorder affect performance? The performance of an app that uses it, that is. In other words: does the ANE affect your app’s frame rate and how much; does it matter what resolution you choose for recording your gameplay. Intro Let us first have a look at the phases of the gameplay screen recording that have the potential to affect an app’s performance: Rendering a frame Read More
In today’s game experience players are much more socially involved than ever before. Even when playing alone you want to record that epic battle with the big bad Boss and later to show it off in the social media. Starling is a great game development framework that can run on desktop and mobile devices, but recording the gameplay on mobile platforms can be a real pain to implement. In this tutorial you will learn how to use Gameplay Recorder native extension for iOS to capture awesome videos directly from your game’s screen. Any previous knowledge about Starling framework counts as Read More
When you make a native extension using the AIR C API, your native code tends to have two parts:
- one that's concerned with exposing functionality in a way that AIR can call, in other words, dependent on the AIR C API;
- functional part, which deals with the platform-specific stuff. This part of your code doesn't (and shouldn't) care about whether it's used in an AIR native extension, a purely native app or something else.
Ideally you want to keep the dependency between these two parts one-directional: the AIR-concerned part should depend on the functional part, but the functional part should not know about and depend on AIR. If you decide to reuse your, say camera or speech recognition functionality, in another project that's not AIR-related , you don't want to force that to include the AIR C API.
So, what happens if you need to dispatch an event from the functional part of your code? Say, the camera refused to start or the speech processor is ready with results and you want you alert AIR to this... Read More
Do you remember the three ways that native code can send data back to ActionScript? Here they are for a quick revision:
- Returning a FREResult object from a call to FREFunction.
- Using output parameters in a FREFunction.
- Sending an event to ActionScript.
The Extension Initializer and Finalizer are the entry and exit points to your native extension. They are also two of the ingredients that make your extension known to the world and make it distinguishable from other extensions in an app. This is why they need to have unique names. Their signatures however need to be exactly as prescribed by AIR. Today we look at what these are in the AIR C API. Read More
We saw what an AIR Native Extension (ANE) is and how it fits in your app. Now let us zoom in and see what's under the hood of an ANE for iOS.
There are two main components that you need to provide, in order to make an ANE for iOS Read More
This is the title article for a series of posts that take a look into the components you'll need, in order to make a native extension for four different platforms. Read More