Versions Compared

Key

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

...

We use conditional compilation to specify platform-specific code so that both the SWF and JS versions can be compiled from the same .as file.  Thus there is only one org.apache.flex.html.Button.as that gets compiled into a SWF/SWC and cross-compiled into a .JS (and included in the same SWC for use by FalconJX).

...

The source code for Button and other components with platform-dependent base classes is to simply use conditional compilation to put two class definitions in the same .as file.  So, for Button.as, it will start with something like:

...