Question
NetConnection.Connect.Rejected in FMS 2
I want to create Audio/video chat application.
I have FMS 2.0.4 and XAMMP 1.6 installed on my computer locally.
i use the following code to test a connection to the FMS:
conn = new NetConnection();
conn.connect("rtmp:/localhost/my_app");
conn.onStatus = function(info) {
trace ("Level: "+info.level+" Code: "+info.code);
};
but it seems it cannot establish a connection to the FMS server and
returned the following errors:
Level: error Code: NetConnection.Connect.Rejected
Level: status Code: NetConnection.Connect.Closed
tried these other codes too on the connect function:
conn.connect("rtmp://localhost/my_app");
conn.connect("rtmp://127.0.0.1/my_app");
conn.connect("rtmp:/127.0.0.1/my_app");
conn.connect("rtmp:/my_app");
but still no luck.
What seems to be the problem in my configuration?
By the way, I tried to disable the XAMMP but stll it cannot establish a connection?
Tried to run it in macromedia flash 8 using alt+enter and through the
webserver using the publish html and swf files but still the same.
Ive been working on this for days.
Im desperate,i need to start working on the application already.
Somebody please help..
tnx..
I have FMS 2.0.4 and XAMMP 1.6 installed on my computer locally.
i use the following code to test a connection to the FMS:
conn = new NetConnection();
conn.connect("rtmp:/localhost/my_app");
conn.onStatus = function(info) {
trace ("Level: "+info.level+" Code: "+info.code);
};
but it seems it cannot establish a connection to the FMS server and
returned the following errors:
Level: error Code: NetConnection.Connect.Rejected
Level: status Code: NetConnection.Connect.Closed
tried these other codes too on the connect function:
conn.connect("rtmp://localhost/my_app");
conn.connect("rtmp://127.0.0.1/my_app");
conn.connect("rtmp:/127.0.0.1/my_app");
conn.connect("rtmp:/my_app");
but still no luck.
What seems to be the problem in my configuration?
By the way, I tried to disable the XAMMP but stll it cannot establish a connection?
Tried to run it in macromedia flash 8 using alt+enter and through the
webserver using the publish html and swf files but still the same.
Ive been working on this for days.
Im desperate,i need to start working on the application already.
Somebody please help..
tnx..
