SFSEvent.onBuddyPermissionRequest EVENT is not firing on
Using smartFox.addBuddy(mcp_CodePal.txt_buddy_add.text); command in
SendAddBuddyRequesttoOtherUser function as specified in the SmartFox Documentation Examples for AS 3.0 section.
<code>
smartFox.addEventListener(SFSEvent.onBuddyPermissionRequest, onBuddyPermissionRequestHandler)
function onBuddyPermissionRequestHandler(evt:SFSEvent):void
{
// 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)
trace("\nBBBBBBBBBBBBBB\n"+evt.params.sender+" "+evt.params.message+"\nBBBBBBBBBBBBBB\n")
}
</code>
You may see that this is exact example script of SmartFox Documentation.But I never received that trace,
when others are adding myself as buddy
by code
<code>
smartFox.addBuddy(txt_addBuddy.text);
</code>
in my own window.
also, smartFox.setBuddyBlockStatus(mcp_CodePal.txt_buddy_add.text, true) is not working.
Both of these are very Crucial for our current working Project.Please Provide Information how to make them work.
Thanking You
hari.S.Babu