Search code examples
c++flashapache-flexactionscript

Can I cross compile my AS3 code or Flex project to native C++?


I would like to tak emy existing AS3 or Flex project and compile it to run on native C++ code. Is there a way to do this? What sort of solutions exist? I do not want to change my AS3 code.


Solution

  • No, because of

    • absense of dynamic features in C++ (you don't have Object and describeType equivalent there)
    • absense of Flash native types in C++ (String (std::string is not equivalent), display objects and many others)
    • absense of language features (event listeners, garbage collection)
    • absense of Flex framework equivalent in C++ (there are other good GUI frameworks in C++, but none looks like Flex - because of the reasons above.)

    In short, it's much easier to write similar program in C++ (using Qt or whatever framework of comparable strength) than write convertor for that.