Support NATA 2014

Browse Sections


Newgrounds Wiki: logCustomEvent

Usage

import com.newgrounds.API;
API.logCustomEvent(event:String);
  • event - The name of the event you want to log as defined in the "Referrals and Events" page of your API Settings.

Each time this call is made, your API stats will show an increment to the specified event. You can use this to track how many people beat your game, view your movie till the very end, or any other variety of purposes you can imagine.