00:00
00:00

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

Newgrounds Wiki: APIEvent

  • Package: com.newgrounds
  • Class: APIEvent
An APIEvent is dispatched by the API, for events such as medal unlocks.

Methods

These are the methods of APIEvent.

clone

public function clone():Event
  • Returns
    • Event

      Properties

      These are the properties of APIEvent.

      data

      public var data:any;

      error

      public var error:String;

      success

      public var success:Boolean;

      Constants

      These are the constants of APIEvent.

      API_CONNECTED

      public static const API_CONNECTED:String = "movieConnected";

      COMMAND_COMPLETE

      public static const COMMAND_COMPLETE:String = "commandComplete";

      ERROR_ALREADY_VOTED

      public static const ERROR_ALREADY_VOTED:String = "alreadyVoted";

      ERROR_BAD_FILE

      public static const ERROR_BAD_FILE:String = "badFile";

      ERROR_BAD_RESPONSE

      public static const ERROR_BAD_RESPONSE:String = "badResponse";

      ERROR_COMMAND_FAILED

      public static const ERROR_COMMAND_FAILED:String = "commandFailed";

      ERROR_HOST_BLOCKED

      public static const ERROR_HOST_BLOCKED:String = "hostBlocked";

      ERROR_INVALID_ARGUMENT

      public static const ERROR_INVALID_ARGUMENT:String = "invalidArgument";

      ERROR_NONE

      public static const ERROR_NONE:String = "noError";

      ERROR_NOT_CONNECTED

      public static const ERROR_NOT_CONNECTED:String = "notConnected";

      ERROR_NOT_LOGGED_IN

      public static const ERROR_NOT_LOGGED_IN:String = "notLoggedIn";

      ERROR_SENDING_COMMAND

      public static const ERROR_SENDING_COMMAND:String = "errorSendingCommand";

      ERROR_TIMED_OUT

      public static const ERROR_TIMED_OUT:String = "timedOut";

      ERROR_UNKNOWN

      public static const ERROR_UNKNOWN:String = "unknownError";

      FILE_LOADED

      public static const FILE_LOADED:String = "fileLoaded";

      FILE_REQUESTED

      public static const FILE_REQUESTED:String = "fileRequested";

      FILE_SAVED

      public static const FILE_SAVED:String = "fileSaved";

      ICON_LOADED

      public static const ICON_LOADED:String = "iconLoaded";

      LOG

      public static const LOG:String = "log";

      MEDAL_UNLOCKED

      public static const MEDAL_UNLOCKED:String = "medalUnlocked";

      MEDAL_UNLOCK_CONFIRMED

      public static const MEDAL_UNLOCK_CONFIRMED:String = "medalUnlockConfirmed";

      QUERY_COMPLETE

      public static const QUERY_COMPLETE:String = "queryComplete";

      SCORES_LOADED

      public static const SCORES_LOADED:String = "scoresLoaded";

      SCORE_POSTED

      public static const SCORE_POSTED:String = "scorePosted";

      VOTE_COMPLETE

      public static const VOTE_COMPLETE:String = "voteComplete";