Asserting your way in ActionScript and Objective-C

We often get asked “what’s with all those assert statements in your code”? This concept was hammered in my head when I was a junior programmer, so I feel kind of old every time I am asked to explain it. But hey… An assert is usually defined as a “debug-only macro that aborts execution if its argument is false”. (See Steve Maguire’s Writing Solid Code) In other languages, like ActionScript, where you don’t have macros, you can use other techniques to achieve the same effect. The idea is that you use an assert as a diagnostic tool to help you Continue Reading

How ActionScript data is represented in C

Welcome to the first tutorial of the Translating between ActionScript and Objective-C series. Before we get on with data conversion, we need to have a word about how the ActionScript types are represented in the AIR C API, which is what you use when you make iOS Native Extensions for AIR. Most of the data you will be passing around will be either an argument of a function you call or a result of a function you call. Share on: WhatsApp Continue Reading

Translating between ActionScript and Objective-C

… and how to keep your cool while doing it. So you took the cross-language rout of programming. It’s fun, it provides variety and it often feels as if you are a tour guide for families visiting each other’s countries. Done that in real life, trust me. You have several people tugging at your sleeve and asking things like “So what’s that in Canadian dollars?” or “I don’t speak ounces. Why won’t they use the metric system?!” Usually all at the same time, as everyone knows it isn’t impolite if you interrupt in a foreign language.   Share on: WhatsApp Continue Reading

Record off-screen video in Starling

It’s been a while since we last talked about recording your screen on iOS. You may remember our tutorial on how to capture the Starling stage in a video file. In that tutorial you see how to record the whole screen or a DisplayObject that is attached to the scene and is visible. In a recent conversation with Amos Laber a question came up: can one record a video of Starling content that is not attached to the stage at all, while the screen is showing something else? As you can imagine throwing a developer an innocent question like this Continue Reading

Exploring China’s app markets

After months of coding you release your next big app on Google Play and start promoting it in every app-oriented media. Now is the time to harvest the fruits and monetize all of your development and marketing efforts. Sounds fine but is something missing from the picture? An iOS version maybe…? No. You are a diligent Flex/Flash developer and a version for the iOS App Store is coming along. So what is it? And the answer is: the world’s largest smartphone market: China. Share on: Continue Reading

Easy Native Extensions Book – second edition

The Easy Native Extensions eBook proved itself as a must have in the tool set of an iOS ANE developer for the last couple of years. As some of our readers put it: Read more testimonials here. New edition coming out on June 10th 2015 Keep reading to find out what’s new in the second edition. Free update for first edition readers The new edition of the book comes with a lot of added value and the new prices will reflect that. Share on: WhatsApp Continue Reading