Now that I’ve reached a bit of a milestone with the pathfinding stuff, I’m taking a break to play with some other items on my to-do list. One of those items is “Give haXe (hex) a spin. haXe is a programming language (very similar to AS3 in syntax) that compiles to multiple targets, including PHP, C++ (code), AS3 (code and swf). It extends AS3 in a couple of ways, and those extensions are the reason I became interested in it in the first place. These include conditional compilation, assertions, apparent execution speed improvements, and alternative syntax for some unwieldy–yet very frequently occurring–situations involving traversing object members and list elements.
haXe is just a compiler, so of course I had to find a decent IDE, as I’m too un733t to mess with the command line. I’m going with FlashDevelop at the moment, which seems entirely sufficient, andit has an extremely clever name to boot. (That last part was sarcasm, for the less sarcastically perceptive reader). Also, support for haXe is built in. Also, Michael at polygonal labs likes it, and I like every thing Michael likes by default, because he’s smart and wrote such a nice data structure library for AS3 (and haXe).
ANYway, the actual reasonfor this post is that I ran into a couple of complications while getting things up and running. They weren’t covered anywhere in the docs for haXe OR FlashDevelop, so I thought I’d just mention them here.
First, when installing haXe, I received “ERROR = [file_open,C:\Program Files/Motion-Twin/neko/gc.dll]“, followed by “installation aborted.” In my case, simply running the installer with admin privileges fixed it.
Second, although I had the debug version of flash installed, for some reason FlashDevelop was showing an error instead of traces in it’s output. It was compiling and running fine (the swf), but I just wasn’t getting any output. So I downloaded the latest “Projector content debugger” from adobe, then set the path in FlashDevelop ( Tools | Program Settings… | FlashViewer | External Player Path ). Now it’s showing output correctly.
Back to playing…







