Posts Tagged ‘native’

ANE Builder Batch File

Friday, January 10th, 2014

Here's a simple batch file I created which will save you some time (and typing) when building AIR native extensions. Just plug in the proper paths for all the variables and you'll be good to go. Two options: download the file or copy and paste from the second link.

Download aneBuild.bat

Click, Copy, Paste

Flash: Direct Memory Access via Native Extension

Sunday, April 28th, 2013

A couple weeks before the Flash Gaming Summit I found an interesting blog post from Colin Northway about managing texture memory in Starling applications. In this post he describes how he forces an error in ActionScript to receive an object's memory address which he then uses as a unique id. I thought this was a pretty cool trick and was discussing it with our engine developer at the office when we suddenly had a thought: if you can get the memory address of an object in ActionScript, what's to stop you from passing that address into native code and doing whatever you want with it? (more…)

Tutorial: Debugging Native Extensions

Sunday, April 7th, 2013

I've written before about how to create your own native extensions for Adobe AIR, but what if you need to debug your extension? If you're doing anything but the simplest of projects, you're going to want to be able to debug the code on the native side, in addition to your AS3 code. The ActionScript side is (hopefully!) already taken care of by your IDE so this tutorial will focus on the native code. It's a pretty short tutorial, but also incredibly useful! (more…)

Speaking at FGS 5

Wednesday, February 6th, 2013

Last year I had a great time at the Flash Gaming Summit in San Francisco and I am pleased to announce that this year I'll be speaking at the event! FGS 5 will take place in San Francisco on March 24th this year and, if its anything like it was last year, it is definitely worth making the trip out! My talk will focus on the benefits of native extensions and creating a simple, C-based native extension to help attendees get started developing their own extensions. You can visit the FGS site to see all the presenters and check back often for updates and the official program list!

I hope to see you there!

Tutorial: Flash and C++ Native Extension

Monday, April 30th, 2012

Last week I decided to look into building a native extension for AIR and was very surprised by the lack of quality resources and tutorials for doing so. I was able to find examples for Android using Java and for iOS using Objective-C, but pretty much nothing for a standard Windows C++ project. I was eventually able to get things up and running by piecing together bits of information from various sources, but I thought I'd take the time to write a step-by-step tutorial on how to do this so that perhaps others will have an easier time. In this tutorial you will create a native extension that simply adds two numbers together and returns the sum. (more…)

Subscribe to RSS feed FGS5 Badge