admin api from the fms server
Hi,
i've never had to do this before so i guess i didn't realize that it's this hard, but is true that you can't call the admin api from the server-side?
even from the Client object??
also, i have objects in my cache from two different applications on my server and yet my info.data object in the result is coming back
without any values.
can someone explain how this is supposed to work...below is my code
nc_admin.connect("rtmp://localhost/admin:1111/", "admin", "admin");
onStatus(info){
function onGetCacheStats(){
this.onResult = function(info){
if(info.code == "NetConnection.Call.Success"){
for(var prop in info.data.objects){
trace("data object props: "+ info.data.objects[prop] + " prop: " + prop );
for(var dat in info.data.objects[prop] ){
trace("data pbj value: "+ info.data.objects[prop][dat] + " dat: "+ dat);
}
}
}
}
}//onGetCacheStats
if(info.code == "NetConnection.Connect.Success"){
this.call("getFileCacheStats", new onGetCacheStats, true);
}
}
thanks much!
