Flash Api Crete Room Error

0 votes

Hi as3 sdk has not been updated for years.

properties appear empty when I create a room with a property.

need to fix it with updateRoomProperties api a second time.
please help me update sdk thank you
asked Jan 7, 2020 in Work In Progress by ahmetaytanozu (11 points)

2 Answers

+1 vote

Hi ahmetaytanozu ,

Greetings!!!

We have forwarded your query to our team, we will get back you as soon as possible.

Meanwhile, could you please your code snippet and response with us, It will hellp us to provide better support to you from our end.

 

Regards,

Priyanka Singh

App42 Team

 

answered Jan 8, 2020 by anonymous
public static function baglan(callback:Function):void
        {
            if(inited == false)
            {
                WarpClient.enableTrace(true);
                WarpClient.initialize(Config.apiKey,Config.secretKey);
                WarpClient.setRecoveryAllowance(120);
                client = WarpClient.getInstance();
                inited = true;
                setInterval(function():void
                {
                    trace("status",Client.client.getConnectionState());
                },500);
            }
            if(connected == false)
            {
                client.setConnectionRequestListener(new ConnectionListener(callback));
                client.connect(User.instance.username);    trace(User.instance.uyeID);
            }else{
                callback(ResultCode.success);
            }

        }




//on Connect

        private function connect(r:int):void
        {
            if(r == ResultCode.success)
            {
                text.text = "Oyuncular Aranıyor..";
                Client.client.setRoomRequestListener(new RoomListener(roomCallback));
                Client.client.setZoneRequestListener(new ZoneListener(new Function()));
                Client.client.setNotificationListener(new NotifyListener(notifyCallback));
                var a:Object = new Object();
                a.sahip = "metin";
                a.level = 5;
                a.puan = 200;
            //    a.aktif = true;Client.client.updateRoomProperties("1411766972",a,null);
                Client.client.createRoom("denemetin","ahmet",3,a);
                //Client.client.joinRoomInRange(1,1,true);
                //Client.client.getRoomsWithProperties({sahip:"gakkos"});
                Client.client.getAllRooms();
            }else{
                text.text = "Bağlantı Başarısız";
                kapatAktif(true);
            }
        }



i get this from room listener and zone lsitener
onCreateRoomDone {"owner":"ahmet","maxUsers":3,"roomId":"1183920214","result":0,"name":"denemetin"}

onGetLiveRoomInfoDone {"room":{"owner":"ahmet","maxUsers":3,"roomId":"1183920214","result":0,"name":"denemetin"},"users":[],"properties":{},"result":0,"customData":""}
0 votes

Isn't there anyone to help me? Please

answered Feb 25, 2020 by ahmetaytanozu (11 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...