Flash Challenge.getUsername()

From J2Play

Jump to: navigation, search

Contents

Description

Get the username, which identify the player in challenge system. It is a unique identifier, and you should never show this name to the end user.

Syntax

public function getUsername(index: Number) : String;

Parameters

* @param index the sequence index of player usernames array

Return Value

@return specific username

Examples

Get current player username

  challenge.getUsername(challenge.getMyIndex());
Personal tools