ActionScript3 Reference
Class PlayerIO
Namespace: playerio
Language: ActionScript 3
Entry class for the initial connection to PlayerIO.
Example
Here's how to authenticate using basic authentication and get a client object:
Properties | |||
---|---|---|---|
public static |
Referance to a QuickConnect instance that allows you to easly connect with 3rd party user databases. |
||
public static |
|
||
Methods | |||
public static |
Authenticates and connects the game to the Player.IO webservices. |
||
public static |
Authenticates and connects the game to the Player.IO webservices. |
||
public static |
Referance to a GameFS instance that allows you to access GameFS |
PlayerIO.quickConnect
public static |
|
Referance to a QuickConnect instance that allows you to easly connect with 3rd party user databases.
PlayerIO.useSecureApiRequests
public static |
|
PlayerIO.authenticate
public static |
|
Authenticates and connects the game to the Player.IO webservices.
Arguments
stage:flash.display:Stage | |
A reference to the base stage of your project. | |
gameId:String | |
Unique ID that identifies which game the client will try to connect to | |
connectionId:String | |
Id of the connection to use when connecting to the game. Usually this is "public" unless you've set up different connections in the Player.IO admin panel. | |
authenticationArguments:Object | |
A dictionary of arguments for the given connection. | |
playerInsightSegments:* (Default = null) | |
segments for the user in PlayerInsight. | |
callback:* (Default = null) | |
Function executed on successful connect: function(client:Client):void{...} | |
errorHandler:* (Default = null) | |
PlayerIO.connect
public static |
|
Authenticates and connects the game to the Player.IO webservices.
Arguments
stage:flash.display:Stage | |
A reference to the base stage of your project. | |
gameId:String | |
Unique ID that identifies which game the client will try to connect to | |
connectionId:String | |
Id of the connection to use when connecting to the game. Usually this is "public" unless you've set up different connections in the Player.IO admin panel. | |
userId:String | |
Unique identifier of the current user playing the game. This can be supplied by you, or a a third party. Example userids are Username, Facebook UserID, OpenID Url etc. | |
auth:String | |
User auth. Can be left blank if the connection identified by connectionid does not require authentication. | |
partnerId:* (Default = null) | |
String that identifies a possible affiliate partner. | |
playerInsightSegments:* (Default = null) | |
segments for the user in PlayerInsight. | |
callback:* (Default = null) | |
Function executed on successful connect: function(client:Client):void{...} | |
errorHandler:* (Default = null) | |
PlayerIO.gameFS
public static |
|
Referance to a GameFS instance that allows you to access GameFS
Arguments
gameId:String | |
the GameID of your game. |
Example
Example of how to request the file game.swf from your games GameFS via PlayerIO