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


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.