Be a Supporter!

Browse Sections


Newgrounds Wiki: getUserName

Usage

import com.newgrounds.API;
var user_name:String = API.getUserName();
This call returns the name of the user currently playing your game or movie. If the user is not logged in, the name will return as "Guest"