How to Convert AS3 to C
- 1). Download and install the HaXe multilanguage program from the HaXe website, in Resources. Download the FlashDevelop platform from the FlashDevelop website, also in Resources. Download Microsoft Visual C++ Express from the Microsoft website.
- 2). Start FlashDevelop. Click the "New Project" option from the "Project" menu. Click "C++ Project" underneath the "HaXe" category in the dialog box.
- 3). Type the code to declare a package and import the HaXe C++ compiler into the Haxe program editor.
package;
import cpp.Lib; - 4). Copy and paste your AS3 class code into the HaXe program editor (on the line following the import statement). Set up the main class so that it is a static function and closes the rest of the class functionality. Close the package by typing a right curly brace ("}") at the end of the class code.
- 5). Click "Test Movie" from the "Project" menu to test the C++ program that has been compiled from the HaXe code.
Source...