Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As you edit and save changes to the code, the new compiler known as FalconJX is compiling not only a SWF, but also cross-compiling your source code into JavaScript, and reporting any errors it finds.   FlexJS uses a "common denominator" approach to its libraries.  Where there are differences in the APIs between Flash and Javascript runtimes, the FlexJS library API will present a new common API that will work for both runtimes, but also expose the runtime-specific APIs as well.  This makes it possible for the library code to be as fast as possible.  Instead of calling APIs on instances of objects that wrap runtime objects, your code can directly access the runtime object itself.  The danger is that if you are porting existing Flash-specific code, you won't know if you are still calling APIs that only exist on Flash.  Each FlexJS library is actually two libraries, one for Flash, one for JavaScript and when your code is cross-compiled, the cross-compiler (or transpiler) will look in the JavaScript version of the library and realize that some of those Flash-specific APIs are not implemented for JavaScript.

Running/Debugging

You To run the Flash version of your application, you should be able to set breakpoints and debug as you would any other Flex project.

...

  1. Select the main Application file in Package Explorer
  2. Click on the Run menu icon


Once you have your app working as a SWF, try the FalconJX tool in the Run -> External Tools menu. It will output a debug version to the To run or debug the JavaScript version, use a browser to open the index.html in the bin/js-debug and a of the project, or the minified version to in the bin/js-release folder. Run the index.html in a browser Each browser has its own JavaScript debugging tools.


To create a debug and release JS version:

...