Answered
help getting the samples/anything to work
hi there,
we've been looking at user media server for a new project, so i downloaded the developer edition and set everything up. it's all set up right using the defaults (1985, 1111) and i can get into the management console and log into the server. my problem is getting anything to work. there was a similar thread on this forum related to this and it tried out what it set out, but there was no solution and nothing still worked. all i'm simply trying to do it get anything to connect to the server so i can figure out how to work it. none of the samples work and the documentation is...well, lets just leave the documentation for the time being.
i'm copying the tutorial_text fla to test the server out. my fla is called damian.fla, and there's a damian subfolder in the applications folder. it also appears in my applications when i go ito the management console and i can start an instance of it from there. i can't however get anything out of flash. below is the code im using
=================================================
==== CODE =======================================
=================================================
var nc:NetConnection = new NetConnection();
//i previously just used "rtmp:/damian" but that lead nowhere
nc.connect("rtmp://localhost:1111/damian");
// Handle status message
nc.onStatus = function(info) {
trace("Level: " + info.level + " Code: " + info.code);
myText.text += newline+"Level: " + info.level + " Code: " + info.code;
/************************
// traces
//Level: error Code: NetConnection.Connect.Rejected
//Level: status Code: NetConnection.Connect.Closed
//which from the last thread i'm assuming means that the swf has found the server but is being rejected
// is there any reason for this?
}
myText.text = "";
var text_so:SharedObject = SharedObject.getRemote("sharedtext", nc.uri, false);
// The following is very important, nothing happens otherwise
text_so.connect(nc);
text_so.onSync = function(list) {
for (var i = 0; i < list.length; i++)
if (list .name == "textValue" && list.code != "success")
{
myText.text = text_so.data.textValue;
break;
}
};
// Update the shared object every time the user types in new text
myText.onChanged = function()
{
text_so.data.textValue = myText.text;
};
=================================================
==== END OF CODE ================================
=================================================
when i check my "management console > manage servers > connections" my connects/disconnects are going up, so something is happening, but i can't get anything else otherwise. if someone has any insight on how to make this work, or could provide a "this will work" fla i'd really appreciate it. i've been looking at this for two solid days now and the only outcome i've come to is that brick walls aren't soft on the head.
apologies if this has been answered before but i couldn't find anything, and i'd rather be considered a stupid noob and finally get the thing working
thanks
we've been looking at user media server for a new project, so i downloaded the developer edition and set everything up. it's all set up right using the defaults (1985, 1111) and i can get into the management console and log into the server. my problem is getting anything to work. there was a similar thread on this forum related to this and it tried out what it set out, but there was no solution and nothing still worked. all i'm simply trying to do it get anything to connect to the server so i can figure out how to work it. none of the samples work and the documentation is...well, lets just leave the documentation for the time being.
i'm copying the tutorial_text fla to test the server out. my fla is called damian.fla, and there's a damian subfolder in the applications folder. it also appears in my applications when i go ito the management console and i can start an instance of it from there. i can't however get anything out of flash. below is the code im using
=================================================
==== CODE =======================================
=================================================
var nc:NetConnection = new NetConnection();
//i previously just used "rtmp:/damian" but that lead nowhere
nc.connect("rtmp://localhost:1111/damian");
// Handle status message
nc.onStatus = function(info) {
trace("Level: " + info.level + " Code: " + info.code);
myText.text += newline+"Level: " + info.level + " Code: " + info.code;
/************************
// traces
//Level: error Code: NetConnection.Connect.Rejected
//Level: status Code: NetConnection.Connect.Closed
//which from the last thread i'm assuming means that the swf has found the server but is being rejected
// is there any reason for this?
}
myText.text = "";
var text_so:SharedObject = SharedObject.getRemote("sharedtext", nc.uri, false);
// The following is very important, nothing happens otherwise
text_so.connect(nc);
text_so.onSync = function(list) {
for (var i = 0; i < list.length; i++)
if (list .name == "textValue" && list.code != "success")
{
myText.text = text_so.data.textValue;
break;
}
};
// Update the shared object every time the user types in new text
myText.onChanged = function()
{
text_so.data.textValue = myText.text;
};
=================================================
==== END OF CODE ================================
=================================================
when i check my "management console > manage servers > connections" my connects/disconnects are going up, so something is happening, but i can't get anything else otherwise. if someone has any insight on how to make this work, or could provide a "this will work" fla i'd really appreciate it. i've been looking at this for two solid days now and the only outcome i've come to is that brick walls aren't soft on the head.
apologies if this has been answered before but i couldn't find anything, and i'd rather be considered a stupid noob and finally get the thing working
thanks
