What’s inside this box? A lot of puzzles! Can you solve all 30?4.08 / 5.00 14,811 Views
Use the mouse to navigate menus and to queue and cancel robot actions.3.73 / 5.00 4,729 Views
Made for the Adventure Jam 2016!3.76 / 5.00 6,398 Views
public static function addEventListener(eventType:String, listener:Function, priority:int, useWeakReference:Boolean):voidRegisters an event listener object with the API so that the listeners receives notification of an event.
public static function connect(root:DisplayObject, apiId:String, encryptionKey:String, movieVersion:String):voidInitializes the Newgrounds API and starts a connection to the Newgrounds server. This should be called before any other API methods or properties.
public static function createSaveQueryByName(groupName:String, filename:String, exactMatch:Boolean, sortDescending:Boolean):SaveQueryCreates a save query that will search for save files by name.
public static function getScoreBoard(scoreBoardName:String):ScoreBoardReturns the score board with the specified name. Returns null if no score board with that name exists for this game, or the API is disconnected.
public static function loadScores(scoreBoardName:String, period:String, firstResult:uint, numResults:uint, tag:String):ScoreBoardLoads a list of scores from a score board. The API will fire a SCORES_LOADED event when the scores have loaded, or an error occurs.
public static var debugMode:String;The debug mode of the movie. The debug mode allows you to easily test different use cases during development. If debugMode is set to RELEASE_MODE, then the API operates normally. If debugMode is set to DEBUG_MODE_LOGGED_IN, then the API operates as if a logged-in user was viewing the movie on Newgrounds. If a game is played on the web, debugMode will automatically turn off and revert to RELEASE_MODE. However, it is still a good practice to set debugMode to RELEASE_MODE before making your game publically available.
public static var medals:Array;Returns a list of the medals for this game. Returns an empty array if there are no medals, or the API has not connected.
public static var saveGroups:Array;Returns a list of save groups for this game. Returns an empty array if this game has no save groups, or the API has not connected.
public static var scoreBoards:Array;Returns a list of scoreboards for this game. Returns an empty array if this game has no scoreboards, or the API has not connected.
public static const DEBUG_MODE_HOST_BLOCKED:String = "debugModeHostBlocked";The DEBUG_MODE_NEW_VERSION debug setting will cause the API to operate as if sitelocking is enabled, and the file is hosted on a blocked domain. The API_CONNECTED event will fail with a HOST_BLOCKED error.