Our goal is for Newgrounds to be ad free for everyone! Become a Supporter today and help make this dream a reality!

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 NewgroundsAPI.zip, 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 MyClass.as -library-path+=NewgroundsAPI.swc
  3. You are ready to go!
    The Newgrounds API is now ready to use.