Knowing the name of a room and the name of a zone you can request the id of the room and the id of the zone.
More...
Knowing the name of a room and the name of a zone you can request the id of the room and the id of the zone.
This request is FindZoneAndRoomByNameRequest and leads to this response.
This example shows how to request the id of a zone and room and capture the response.
private var _es:ElectroServer;
private function initialize():void {
_es.engine.addEventListener(MessageType.FindZoneAndRoomByNameResponse.name, onFindZoneAndRoomByNameResponse); var fzar:FindZoneAndRoomByNameRequest = new FindZoneAndRoomByNameRequest();
fzar.roomName = "MyRoom";
fzar.zoneName = "MyZone"; _es.engine.send(fzar);
}
private function onFindZoneAndRoomByNameResponse(e:FindZoneAndRoomByNameResponse):void {
trace("zoneId: " + e.roomAndZoneList[0].toString());
trace("roomId: " + e.roomAndZoneList[1].toString());
}