Versions Compared

Key

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

...

  1. FlexJS Compiler
  2. FlexJS Framework
  3. FlexJS ExternsTypedefs

Core

FlexJS at its most basic level is the FlexJS Compiler. The compiler takes ActionScript code and outputs plain Javascript. The most obvious comparison to the FlexJS Compiler is TypeScript. When using the FlexJS Compiler as only a cross-compiler, it is used the same way the TypeScript compiler is used and the features are very similar.

...

The FlexJS Framework is a collection of SWC files which can be used to make application development easier. This includes core language features in ActionScript which do not exist in Javascript, abstractions of HTML elements, component sets and more. If you are familiar with classic Flex  Halo and Spark development for Flash and AIR applications, a large portion of the framework will feel familiar.

...

Typedefs

FlexJS ExternsTypedefs are SWC files designed to allow type-checking for application development. They contain the type definitions in ActionScript, but none of the actual implementation of the Javascript code. These are linked used for type-checking at compile-time, but are not cross-compiled and included as Javascript code for deployment. To use these externstypedef swcs, the native Javascript code libraries are linked at run-time in the HTML. These are very similar to TypeScript type definitions. By convention, typdef swcs are named in all lowercase to help differentiate them from swcs which are cross-compiled.

Putting the Pieces Together

...