Server Management API help
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Macromedia Flash Server > Server Management API help




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Server Management API help  
Mike Elskamp


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-06 07:48 AM


I'm trying to pull some stats down from my server (FMS2), but I think
I'm running into some problems formatting the result handler correctly.
Here is my code:

main_nc =3D new NetConnection();
main_nc.onStatus =3D function(info) {
if (info.code =3D=3D "NetConnection.Connect.Success") {
trace("NetConnection Successful");
var resObj =3D new Object();
resObj.onResult =3D function (val):Void {
trace(val.code);
trace("Bytes_In is:" +
val.data.bytes_in);
};
main_nc.call("getIOStats()", resObj);
} else {
trace("ERROR: " + info.code);
}
};
main_nc.connect("rtmp://string removed");

This code gives me:
NetConnection Successful
NetConnection.Admin.CommandFailed
Bytes_In is:undefined


I have also tried using the code on page 401 of O'Reilly's Programming
Flash Communication Server, and I get this error code back:
**Error** Scene=3DScene 1, layer=3DActions, frame=3D1:Line 25: There is =
no
property with the name 'responder'.
pcall.responder.result =3D function (result) {

Total ActionScript Errors: 1 	 Reported Errors: 1

I have the FCSAdminConnector, FCSAdminAdaptor, PendingAdminCall, and
FCSConstants files downloaded and installed on my local machine, with
the classpath set to point to their location.  I'm using Flash
Professional 8 for development.

I'm still getting my feet wet with ActionScript, so I'm hoping these are
newbie mistakes with easy fixes.  If anybody can help me over the
hurdle, it would be much appreciated!

Thanks,
Mike

 ________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com






[ Post a follow-up to this message ]



    RE: Server Management API help  
Stefan Richter


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-06 07:48 AM

Could you show us what your rtmp string looks like exactly (Without giving
away all details of course).
I am interested in this line:
main_nc.connect("rtmp://string removed");

Stefan




> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gman
e.org] On Behalf Of
> Mike Elskamp
> Sent: 20 March 2006 17:48
> To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> Subject: [FlashComm] Server Management API help
>
>
> I'm trying to pull some stats down from my server (FMS2), but
> I think I'm running into some problems formatting the result
> handler correctly.
> Here is my code:
>
> 	main_nc = new NetConnection();
> 	main_nc.onStatus = function(info) {
> 		if (info.code == "NetConnection.Connect.Success") {
> 			trace("NetConnection Successful");
> 			var resObj = new Object();
> 			resObj.onResult = function (val):Void {
> 				trace(val.code);
> 				trace("Bytes_In is:" +
> val.data.bytes_in);
> 				};
> 			main_nc.call("getIOStats()", resObj);
> 		} else {
> 			trace("ERROR: " + info.code);
> 		}
> 	};
> 	main_nc.connect("rtmp://string removed");
>
> This code gives me:
> NetConnection Successful
> NetConnection.Admin.CommandFailed
> Bytes_In is:undefined
>
>
> I have also tried using the code on page 401 of O'Reilly's
> programming Flash Communication Server, and I get this error
> code back:
> **Error** Scene=Scene 1, layer=Actions, frame=1:Line 25:
> There is no property with the name 'responder'.
>      	pcall.responder.result = function (result) {
>
> Total ActionScript Errors: 1 	 Reported Errors: 1
>
> I have the FCSAdminConnector, FCSAdminAdaptor,
> PendingAdminCall, and FCSConstants files downloaded and
> installed on my local machine, with the classpath set to
> point to their location.  I'm using Flash Professional 8 for
> development.
>
> I'm still getting my feet wet with ActionScript, so I'm
> hoping these are newbie mistakes with easy fixes.  If anybody
> can help me over the hurdle, it would be much appreciated!
>
> Thanks,
> Mike
>
>  ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com http://training.figleaf.com
>

 ________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:26 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register