Flash Challenge.setResult()

From J2Play

Jump to: navigation, search

Contents

Description

Sets the results for all players in the game

Syntax

public setResult(win:Array, loss: Array, tie: Array) : Void;

Parameters

* @param won an array of indexes for the players who won
* @param loss an array of indexes for the players who lost
* @param tie an array of indexes for the players who tied

Return Value

N/A

Examples

Indicates that player 0 won and player 1 lost

challengeData.setResult(Array(Object(0)),Array(Object(1)),Array());
Personal tools