Question
getting NetConnection.Connect.Rejected
I signed up with a FMS hosting service. They have a nice
interface where I was able to install an application. I called it
"simple", cause its bare bones simple. After installing, it gives
me the rtmp connection string. Problem is - I get
NetConnection.Connect.Rejected every time. I tried removing it, and
installing again. But same thing.
This is in frame 1. Is there something wrong with this?
-----------------------------------------------------------------------------------
my_nc = new NetConnection();
my_nc.onStatus = function (info) {
switch(info.code)
{
case "NetConnection.Connect.Success":
textbox.text = "success" + "\n";
break;
case "NetConnection.Connect.Rejected":
textbox.text = "rejected" + "\n";
textbox.text += info.application.msg + "\n";
textbox.text += "Event: " + info.code + "\n";
textbox.text += "Type: " + info.level + "\n";
textbox.text += "Message:" + info.description + "\n";
break;
case "NetConnection.Connect.Failed":
textbox.text = "failed";
break;
case "NetConnection.Connect.Closed":
textbox.text += "Connection closed.";
break;
}
};
my_nc.connect("rtmp://exx3333.rtmphost.com/simple");
----------------------------------------------------------------------------
(I didn't put in the exact rtmp string in there, since this is a public forum)
The result I get printed out in the text box is:
rejected
undefined
Event: NetConnection.Connect.Rejected
Type: error
Message:[ Server.Reject ] : (_defaultRoot_, _defaultVHost_) : Application (simple) is not defined.
But - the hosting service's interface panel shows that application "simple" is there. I sent the hosting service a support request, but I probably won't hear back from them until Monday.
This is in frame 1. Is there something wrong with this?
-----------------------------------------------------------------------------------
my_nc = new NetConnection();
my_nc.onStatus = function (info) {
switch(info.code)
{
case "NetConnection.Connect.Success":
textbox.text = "success" + "\n";
break;
case "NetConnection.Connect.Rejected":
textbox.text = "rejected" + "\n";
textbox.text += info.application.msg + "\n";
textbox.text += "Event: " + info.code + "\n";
textbox.text += "Type: " + info.level + "\n";
textbox.text += "Message:" + info.description + "\n";
break;
case "NetConnection.Connect.Failed":
textbox.text = "failed";
break;
case "NetConnection.Connect.Closed":
textbox.text += "Connection closed.";
break;
}
};
my_nc.connect("rtmp://exx3333.rtmphost.com/simple");
----------------------------------------------------------------------------
(I didn't put in the exact rtmp string in there, since this is a public forum)
The result I get printed out in the text box is:
rejected
undefined
Event: NetConnection.Connect.Rejected
Type: error
Message:[ Server.Reject ] : (_defaultRoot_, _defaultVHost_) : Application (simple) is not defined.
But - the hosting service's interface panel shows that application "simple" is there. I sent the hosting service a support request, but I probably won't hear back from them until Monday.
