Hey all,
I'm still quite new to FDS and Flex, but I'm running into a
serious problem. I've created a small test application (about 7
lines of code) to experiment with a RTMP connection to an FDS
server. I've installed the Express edition of FDS 2. But, when i
try to connect (NetConnection.Connect), it connects for about a
millisecond and then the server displays a java error and my
connection is closed. I've tried a thousand variations in my URI,
using different encodings, protocols etc. But to no avail.
My code for connecting:
nsConn = new NetConnection();
nsConn.addEventListener(NetStatusEvent.NET_STATUS,
netEvent);
nsConn.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
netSecurityError);
// nsConn.objectEncoding = flash.net.ObjectEncoding.AMF0;
nsConn.connect("rtmp://localhost:2037/MicTest/");
My netEvent trace output:
NetConnection.Connect.Success
Connection succeeded.
NetConnection.Connect.Closed
undefined
And the crash on the server:
Exception in RtmpReader thread:
java.lang.IndexoutOfBoundsException: Index: 0, Size:0
...
at
flex.messaging.io.tcchunk.TCCommand.getArg(TCCommand.java:259)
I've restarted the FDS, my computer, relocated my
application, but I can't get it to work. Any ideas?
Thanks,
Bob