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

Browse Sections

Newgrounds Wiki: getOfficialURL


import com.newgrounds.API;
var url:String = API.getOfficialURL();
Gets a URL where you can send users to play your official version. This URL is not the actual URL where your official version is hosted, but a URL that will first track that you redirected a user, then redirect them to your true official URL.

Use this code when making custom handlers for HOST_BLOCKED and NEW_VERSION_AVAILABLE events.