Lleoun
02-19-2008, 06:12 PM
Hi all,
I'm trying to connect to Flash Media Server 3, but I don't know how. Please help!!
Below is waht I've done so far .. but I don't know if it's correct.
Thanks a million in advance!
myConnection = new NetConnection();
myConnection.connect("rtmp://localhost");
myConnection.onStatus = function(infoObj) {
switch (infoObj.code) {
case "Netconnection.Connect.Success" :
trace("success");
case "NetConnection.Connect.Failed" :
trace("failed");
case "NetConnection.Connect.Rejected" :
trace("rejected");
case "NetConnection.Connect.InvalidApp" :
trace("Invalid App");
case "NetConnection.Connect.Closed" :
trace("Closed");
case "NetConnection.Connect.AppShutDown" :
trace("AppShutDown");
}
};
I'm trying to connect to Flash Media Server 3, but I don't know how. Please help!!
Below is waht I've done so far .. but I don't know if it's correct.
Thanks a million in advance!
myConnection = new NetConnection();
myConnection.connect("rtmp://localhost");
myConnection.onStatus = function(infoObj) {
switch (infoObj.code) {
case "Netconnection.Connect.Success" :
trace("success");
case "NetConnection.Connect.Failed" :
trace("failed");
case "NetConnection.Connect.Rejected" :
trace("rejected");
case "NetConnection.Connect.InvalidApp" :
trace("Invalid App");
case "NetConnection.Connect.Closed" :
trace("Closed");
case "NetConnection.Connect.AppShutDown" :
trace("AppShutDown");
}
};