Hi,
I really can't find in the doc, how to read the room id (that i can see in the json trace) from a json command.
{"t":"xt","b":{"r":57752,"o":{"lv":"1",".............
How can i get the r param?
i have tryed by using resObj.r but it didn't work.
HELP can't get room id from json extensionresponse
not working.
Are you sure about the command? Keep getting undefined also with resObj.data.r
nc.onExtensionResponse = function(resObj:Object, type:String)
{
trace(resObj.data.r);
}
keep getting undefined. Rest of the onExtensionResponse works correctly. I can read successfully the resObj._cmd and other values.
Pls help.
Are you sure about the command? Keep getting undefined also with resObj.data.r
nc.onExtensionResponse = function(resObj:Object, type:String)
{
trace(resObj.data.r);
}
keep getting undefined. Rest of the onExtensionResponse works correctly. I can read successfully the resObj._cmd and other values.
Pls help.
My bad, I didn't read your posting properly.
For JSON, you can't access the roomId directly (a known issue). So in order to get a room id, you'll need to manually pass it along with your data.
Another mistake:
It's resObj.dataObj - and this is for AS3. For AS2, you can access it directly.
For JSON, you can't access the roomId directly (a known issue). So in order to get a room id, you'll need to manually pass it along with your data.
Another mistake:
It's resObj.dataObj - and this is for AS3. For AS2, you can access it directly.
Smartfox's forum is my daily newspaper.
It's wasn't supported. See http://forums.smartfoxserver.com/viewtopic.php?t=6430
Smartfox's forum is my daily newspaper.