ic2000 ic2000 - 9 months ago 135
ActionScript Question

ActionScript to Haxe

Is it possible to convert ActionScript 3 to Haxe? I have seen a converter on the Haxe website but I have no idea on how to use it! All it is, is a bunch of code which I am not understanding. If someone would show me how to use it, it would be a great help!

Answer Source

I recently converted quite a large project from Actionscript 3 to Haxe and I'd strongly suggest doing it manually yourself: the conversion tools I used did not seem entirely reliable (and required a lot of manual fixes anyway) and, in the process, you will begin to learn the key differences between the two languages.

This AS3 to Haxe cheat sheet should allow you to do a simple Find and Replace on the most basic changes (e.g. void => Void, public class MyClass => class MyClass) and clearly outlines the differences on slightly more complicated ones that Find and Replace may not be able to handle alone (e.g. loops, casting, reflection).

This comparison of an AS3 to Haxe code snippet should also help your understanding if the cheat sheet is not clear enough.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download