onPrivateMessage Documentation
Posted: 30 Jul 2008, 15:09
The documentation for the 'onPrivateMessage' method states that four parameters are received as:
However, after bashing my head and digging around in the code for a while, I found the actualy implementation of this method:
The last two parameters should be swapped around in the documetnation.
Code: Select all
message:String, sender:User, roomId:Number, userId:NumberCode: Select all
scope.onPrivateMessage(textMsg.toString(), scope.roomList[fromRoom].userList[usrId], usrId, fromRoom)