Be a Supporter!

Browse Sections

Newgrounds Wiki: mxmlc

To use the Newgrounds API with the command-line mxmlc compiler, you must add the NewgroundsAPI.swc to the library path.
  1. Copy NewgroundsAPI.swc to your project folder.
    Unzip, and copy the SWC file into your source folder.
  2. Add the NewgroundsAPI.swc library to the mxmlc command line.
    Use the library-path command line option to link your project to the Newgrounds API library. For example:
    mxmlc -library-path+=NewgroundsAPI.swc
  3. You are ready to go!
    The Newgrounds API is now ready to use.