PlayerIO

The fastest way to build online games without breaking a sweat.

ActionScript3 Reference

actionscript 3 PublishingNetworkRelations class informationClass PublishingNetworkRelations

Namespace: playerio
Language: ActionScript 3

The Publishing Network Relations Service

Properties

 
public
friends :Array [read-only]

List of all friends;

Methods

 
public
isBlocked (userId:String):Boolean

Check if a specific user is blocked.

public
isFriend (userId:String):Boolean

Check if a specific user is a friend.

public
showBlockedUsersManager (closedCallback:Function):void

Shows the a dialog where the user can manage their blocked users list.

public
showFriendsManager (closedCallback:Function):void

Shows the a dialog where the user can manage their friends list.

public
showRequestBlockUserDialog (userId:String, closedCallback:Function):void

Shows a dialog where the user can choose to block a specific user.

public
showRequestFriendshipDialog (userId:String, closedCallback:Function):void

Shows a dialog where the user can choose to send a friend request to the specified user.

PublishingNetworkRelations.friends

public
friends :Array [read-only]

List of all friends;

PublishingNetworkRelations.isBlocked

public
isBlocked (userId:String):Boolean

Check if a specific user is blocked.

Arguments

userId:String
The userId of the user to check.

PublishingNetworkRelations.isFriend

public
isFriend (userId:String):Boolean

Check if a specific user is a friend.

Arguments

userId:String
The userId of the user to check.

PublishingNetworkRelations.showBlockedUsersManager

public
showBlockedUsersManager (closedCallback:Function):void

Shows the a dialog where the user can manage their blocked users list.

Arguments

closedCallback:Function

PublishingNetworkRelations.showFriendsManager

public
showFriendsManager (closedCallback:Function):void

Shows the a dialog where the user can manage their friends list.

Arguments

closedCallback:Function
Callback that will be called when the dialog closes.

PublishingNetworkRelations.showRequestBlockUserDialog

public
showRequestBlockUserDialog (userId:String, closedCallback:Function):void

Shows a dialog where the user can choose to block a specific user.

Arguments

userId:String
The userId of the user to block.
closedCallback:Function
Callback that will be called when the dialog is closed.

PublishingNetworkRelations.showRequestFriendshipDialog

public
showRequestFriendshipDialog (userId:String, closedCallback:Function):void

Shows a dialog where the user can choose to send a friend request to the specified user.

Arguments

userId:String
The userId of the user that will receive the friendship request if sent
closedCallback:Function
Callback that will be called when the dialog is closed