Get Room Owner

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

lordzardeck
Posts: 14
Joined: 03 Sep 2011, 13:39

Get Room Owner

Postby lordzardeck » 03 Sep 2011, 14:05

How would you get the owner of a room?
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Postby rjgtav » 03 Sep 2011, 14:17

Hi. In the server-side, you can get it by using the Room.getOwner() method.

In the client-side, it looks like it isn't possible, maybe due to security measures. But if you need to get the room owner's name on the client-side, you can always create a room variable (called for example owner) and store the owner's name.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
MicroEyes
Posts: 13
Joined: 24 Jun 2013, 10:22

Re:

Postby MicroEyes » 01 Jun 2014, 08:40

rjgtav wrote:Hi. In the server-side, you can get it by using the Room.getOwner() method.

In the client-side, it looks like it isn't possible, maybe due to security measures. But if you need to get the room owner's name on the client-side, you can always create a room variable (called for example owner) and store the owner's name.


Thanks, rjgtav. That saved my day.

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 10 guests