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

From AS to cocos2d-Action

I used to be an ActionScript developer. Last year I started working with Objective-C, and this year I got into cocos2d. I’ve had some insights during the learning process, so I’m looking back and sharing them, as a report and reference for more fellow developers who want to move from Flash development to cocos2d. Learning cocos2d has been a pleasant process, because switching from Starling feels incredibly convenient—like back when I moved from PureMVC to Robotlegs, that feeling of meeting too late. This article records a short summary of what I learned about Action in cocos2d. Actions in cocos2d are similar to motion tweens in Flash, but they’re more powerful. In Flash, everything you can do with motion tweens, including position, rotation, scale, color, and opacity, can also be done with Actions in Cocos2D. But in Flash development, relying only on changes in position, rotation, scale, color, and opacity isn’t enough to make an interesting game—these are just animations. More comprehensive actions are what make various values change, and they come in two types: instantaneous changes and changes over time. In Flash, I generally use GTween to control changes to various values. Here’s an example: say you’re making the resource amount display text in StarCraft. When you spend or gather some resources, the resource amount text doesn’t change directly; it ticks over time. So I usually create a custom TextField, implement a pair of getter and setter, and use GTween to change their values, adding easing. Many effects can be achieved this way. You can even ease through texture swaps according to certain rules.

App Development

Adobe makes the RTMP protocol public

Recently, Adobe published the RTMP protocol specification: Official page: http://www.adobe.com/devnet/rtmp/ Download link: http://www.adobe.com/devnet/rtmp/pdf/rtmp_specification_1.0.pdf

Flash

Mousebomb Ver.2007 Flash Site full-site source files

2007 Site Source Files ReleasedMousebomb Ver.2007 Flash Site full-site source files are now released.

Works

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

GTween Tweening and Animation Library

Spotted a GTween AS3 library, thought I’d share it. GTween is a compact but quite robust AS3 library developed by Grant Skinner. It can be used to implement tweens, animations, and gradients. It cu...

Flash

Online image processing built with Flash

I came across an online image-editing RIA on Halley‘s blog. MediaCreator alpha1 is an online multimedia authoring app built in Flash — a prototype along the lines of scrapblog. Some basic functionality is already in place: it lets users edit images, text and vector graphics online, and add masks, borders and backgrounds.

Flash

Mousebomb Ver.2006 Flash Site complete source files

The 2007 unfinished new version is out! The complete source files for the old Mousebomb Ver.2006 Flash Site are now released

Works