Be a Supporter!

Browse Sections


Newgrounds Wiki: isPublishedHost

Usage

import com.newgrounds.API;
var is_published:Boolean = API.isPublishedHost();
Returns true if the domain hosting your swf is not recognized as localhost or a newgrounds preview page.