Be a Supporter!

Browse Sections


Newgrounds Wiki: getUserID

Usage

import com.newgrounds.API;
var user_id:Number = API.getUserID();
This call returns the ID of the user currently playing your game or movie, or if the user is a guest, returns 0.