| Mike Elskamp 2006-03-21, 2:49 am |
|
I used this format for the rtmp string:
Main_nc.connect("rtmp://server_name.domain_name.com:1111", "admin_name",
"password");
The server_name, domain_name, admin_name, and password are obviously
different, but that gives you the idea.
Thanks,
Mike
****************************************
**************
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
=20
> -----Original Message-----
> From: flashcomm-bounces at chattyfig.figleaf.com=20
> [mailto:flashcomm-bounces at chattyfig.figleaf.com] On Behalf Of=20
> Mike Elskamp
> Sent: 20 March 2006 17:48
> To: flashcomm at chattyfig.figleaf.com
> Subject: [FlashComm] Server Management API help
>=20
>=20
> I'm trying to pull some stats down from my server (FMS2), but=20
> I think I'm running into some problems formatting the result=20
> handler correctly.
> Here is my code:
>=20
> 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");
>=20
> This code gives me:
> NetConnection Successful
> NetConnection.Admin.CommandFailed
> Bytes_In is:undefined
>=20
>=20
> I have also tried using the code on page 401 of O'Reilly's=20
> programming Flash Communication Server, and I get this error=20
> code back:
> **Error** Scene=3DScene 1, layer=3DActions, frame=3D1:Line 25:=20
> There is no property with the name 'responder'.
> pcall.responder.result =3D function (result) {
>=20
> Total ActionScript Errors: 1 Reported Errors: 1
>=20
> I have the FCSAdminConnector, FCSAdminAdaptor,=20
> PendingAdminCall, and FCSConstants files downloaded and=20
> installed on my local machine, with the classpath set to=20
> point to their location. I'm using Flash Professional 8 for=20
> development.
>=20
> I'm still getting my feet wet with ActionScript, so I'm=20
> hoping these are newbie mistakes with easy fixes. If anybody=20
> can help me over the hurdle, it would be much appreciated!
>=20
> Thanks,
> Mike
>=20
> ________________________________________
_______
> FlashComm at chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>=20
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training=20
> http://www.figleaf.com http://training.figleaf.com
>=20
Thanks,
Mike Elskamp
________________________________________
_______
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
|