Shoot swords, teleport and don't mess with the turtles3.92 / 5.00 10,284 Views
Join Marko Sharko on his first detective case!3.52 / 5.00 3,438 Views
Jump through a bustling cat city collecting fish for points.3.46 / 5.00 1,876 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.