Resolving "Extension context is null" when writing an ANE

AS code for calling the ANE: _context = ExtensionContext.createExtensionContext(EXTENSION_ID, null); You’ll find that _context is always null. The reason is that the jar was built with JDK 1.7...

Flash

ANE for opening the native Maps app and navigating on iOS 6

cn.flashj.ane.ios.OpenMap is a native extension for iOS that does one very simple thing: jump to the system’s built-in Maps app and navigate to a place. It provides 2 methods: openMap.routeFromSourceToDest(source, dest); navigates from source to dest. openMap.routeToDest(dest); navigates from the current location to dest. The source and dest parameters are both cn.flashj.ane.ios.MapItemVO, a class with three fields: latitude, longitude, and place name. Example usage:

Flash

Error when packaging Adobe AIR with an ANE from an external SDK

Symptoms: Our project needed the ANE QR code scanning feature. After writing it in XCode with ZBarSDK and publishing it as an ANE, packing it into an IPA with adt threw this error: Packaging failed! Packaging error message: Compilation failed while executing : ld64 Packaging output: ld: warning: ignoring file /var/folders/l5/kql7svqx5j93vwg65tj3pt_c0000gn/T/8e0d5504-ffea-41da-a45b-22cfe260a197/libcn.flashj.ane.ios.QRScan.a, file was built for archive which is not the architecture being linked (armv7): /var/folders/l5/kql7svqx5j93vwg65tj3pt_c0000gn/T/8e0d5504-ffea-41da-a45b-22cfe260a197/libcn.flashj.ane.ios.QRScan.a Undefined symbols for architecture armv7: “_QRScanExtInitializer”, referenced from: _g_com_adobe_air_fre_fmap in extensionglue.o (maybe you meant: _QRScanExtInitializer_name) “_QRScanExtFinalizer”, referenced from: _g_com_adobe_air_fre_fmap in extensionglue.o (maybe you meant: _QRScanExtFinalizer_name) ld: symbol(s) not found for architecture armv7

Flash

Loli Adventure project completed and published

Loli’s Adventure was the first mobile game project I saw through to completion as lead programmer. I learned a lot from it and got a feel for how it differs from browser games. The project was built with PHP (AMFPHP) + AIR (Starling plus traditional UI), and on the front end, Starling + traditional UI still runs into plenty of performance limits — from here on, I plan to drop traditional UI entirely for mobile games. This year is a breakout year for mobile platform products, and my interest is sky-high right now.

App Development

Kingdom Wars game map editor source code download

The game project we’re developing, Kingdom War, has now entered its final sprint. I’m heading back to Shenzhen at the end of July, and I hope to have it finished before then. Since I’ve been busy ...

Flash

Flash Debug Tool-De MonsterDebugger

Last time I posted a Flash debug tool, Arthropod. Now here’s an addition — one of the most feature-packed, most usable Flash Debug tools: De MonsterDebugger. Right now Huoshan is using this debug tool.

Flash

Flash Debug Tool - Arthropod

Arthropod is a Flash debug tool. Its main feature: developers just need to call its Debug.log(“×××”); method to write relevant logs for easier debugging. The author is currently busy working on version 2.0. The new version will have an improved UI and some new features, making it more usable. The author plans to make Arthropod the undisputed choice for a Flash debugger.

Flash

Adobe AIR 1.5 Cookbook!

The Adobe AIR 1.5 Cookbook is out. In addition to AIR 1.5 being released today, the Adobe AIR 1.5 Cookbook is also being released. This book will be an essential resource for anyone doing AIR development - as it also includes the new AIR 1.5 features. This book is an excellent resource for beginners and advanced AIR developers alike. If you have never touched AIR, this book can certainly get you started. In addition, we cover all development angles on this: Flash, Flex, and HTML / JavaScript.

Flash

Fixing the Fanfou AIR Client "Acting Up" Issue

Ever since I added the minimize-to-tray feature last time, I’ve been hearing about one “freak-out” paranormal event after another — you type in your own username and password, and the login info th...

Works

Sharing Practical Code for Minimizing an AIR App to the System Tray (Windows)

Fanfou 1.7 released, sharing part of the code for the newly added minimize-to-system-tray feature:

Flash
123