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!

Browse Sections

Newgrounds Wiki: loadOfficialURL

Usage

import com.newgrounds.API;
var url:String = API.loadOfficialURL();
This command opens your "Official URL" in a new browser window and tracks the referral in your API stats.

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