Forums » Union General »
RoomEvent.UPDATE_ROOM_ATTRIBUTE not available in Alpha 7
Added by Harendra Singh 633 days ago
Hello all,
I am using reactor since alpha 4 and now downloaded latest alpha 7. I have written code for RoomEvent.UPDATE_ROOM_ATTRIBUTE, and added a event listener. Like following.
function serverRoomUpdateAttribute(evt:RoomEvent):void
{
var changedAttr:Attribute = evt.getChangedAttr();
var changedByClient:String = evt.getClientID(); // who change this attribute
}
In reactor alpha 7, "RoomEvent.UPDATE_ROOM_ATTRIBUTE" does not exist. It is replaced with AttributeEvent.Update, But I am unable to find who change this attribute in this event.
function serverRoomUpdateAttribute(evt:AttributeEvent):void
{
var changedAttr:Attribute = evt.getChangedAttr();
//var changedByClient:String = evt.getClientID(); I need to call this statement. but this throws exception.
}
Please suggest me, How can i access clientId in above situation.
Thanks in advance.
Replies
RE: RoomEvent.UPDATE_ROOM_ATTRIBUTE not available in Alpha 7 - Added by colin moock 633 days ago
hi harendra,
that method was changed to Attribute's byClient variable. try:
changedAttr.byClient
colin