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: 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"