on buddylist Loading BuddyRoom is not available

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply
HariBabu
Posts: 8
Joined: 05 Mar 2008, 05:45

on buddylist Loading BuddyRoom is not available

Post by HariBabu »

Sir,
I am Using the buddyList example Code in my Project with AS 2.0. I want to Add Buddy Joined Room also in the List of Buddy Features in the Event onBuddyList and onBuddyListUpdated and onBuddyRoom Event.I am trying to jin these three events to derive the Current Buddy Joined Room.
My Situation:There are so many Rooms. I am in the Hall. My buddy Joinedin The Garden. I am getting Only ONline status only.But I need the Room in which My Buddy Joined.
My Problem: there are so many Rooms and at my Buddy's entry So many Other Members are also entering in Different Rooms. I need to display the Room name also in addition to his Status.
My Trials: I already Found a code Block on Smartfoxclient.as of version 2.0
----------
* <code>
* smartFox.onBuddyRoom = onBuddyRoomHandler
*
* var buddy:Object = smartFox.getBuddyByName("jack")
* smartFox.getBuddyRoom(buddy)
*
* function onBuddyRoomHandler(idList:Array):Void
* {
* // Reach the buddy in his room
* smartFox.join(idList[0])
* }
* </code>
But It is not retriving the Resultant value. And I tested on So many variations of the aboveCode.
Please guide me in the right way to get the Room Occupied by My buddy along with his status.
thank you.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Hi there, sorry but it's quite difficult to follow.
From what I see you're trying to get the room of a buddy in your list.
In order for this to work the buddy should be online and joined in one room.

We have an example showing how this works -> it is found at chapter 5.12 of the documentation and it comes with full source code.

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
HariBabu
Posts: 8
Joined: 05 Mar 2008, 05:45

thanks for getbuddyroom suggestion

Post by HariBabu »

Sir,
I found it in the documentation.thanks for yor guidance
Hari.S.Babu
Post Reply