Sir,
When I am adding buddy in advanced mode , I am unable to achieve the correct Result. It simply adding buddy to the corrent User and not sending any alert to the Other User, even though I am following the Smartfox Example code.
<code>
smartFox.addEventListener(SFSEvent.onBuddyPermissionRequest, onBuddyPermissionRequestHandler)
function onBuddyPermissionRequestHandler(evt:SFSEvent):void
{
trace(evt.params.sender+" "+evt.params.message);
// Create alert using custom class from Flash library
// var alert_mc:CustomAlertPanel = new CustomAlertPanel()
//
// alert_mc.name_lb.text = evt.params.sender
// alert_mc.message_lb.text = evt.params.message
//
// // Display alert
// addChild(alert_mc)
}
</code>
is not working. The relevant Message is not appearing on the Event.
I already added these features int o Server Confic XML
- <BuddyList active="true">
<size>300</size>
<maxBuddyVariables>6</maxBuddyVariables>
<mode>advanced</mode>
<addBuddyPermission>true</addBuddyPermission>
<offLineBuddyVariables>true</offLineBuddyVariables>
<mutualAddBuddy>true</mutualAddBuddy>
<mutualRemoveBuddy>true</mutualRemoveBuddy>
<permissionTimeOut>30</permissionTimeOut>
</BuddyList>
Am I missing any other of the Settings.Please clafy me as early as possible.
I can undersytand that, an alert should be shown If the
<event>SFSEvent.onBuddyPermissionRequest</event> fired correctly. At that Client window Other user has two choices.If he
grants Permission 'A' will be added as a budddy to 'B' and 'B" will be added as buddy to 'A'. But If the Usr at 'B' Side
selects cancel Option , there is no Event to fire on 'A' client window. How do 'A' will know that 'B' cancelled his Request.
<code>
smartFoxs.sendBuddyPermissionResponse( b, mc_alert.lb_name.text )
</code>
is sending a message to Server only to Add/not add the buddy(is it not?).
Then how to Cycle thru this new mutual add/remove setting.Please Clarify.