Skip to main content
Inspiring
May 3, 2006
Answered

help getting the samples/anything to work

  • May 3, 2006
  • 2 replies
  • 283 views
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
    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer divillysausages
    ok, i figured out what was causing the problem, twas none other that mc afee security thing. whatever it was doing it was blocking my attempts to connect to the media server. even when i disabled everything. once i uninstalled the whole thing it worked like a charm and all the sample/tutorials as well

    mc afee your days are numbered...

    2 replies

    Inspiring
    May 3, 2006
    ok, after more testing, this is what happens. dispite being told that
    nc.connect("rtmp:/damian");
    is the right syntax, it results in a NetConnection.Connect.Failed error message. so does nc.connect("rtmp://localhost/damian");

    however, using
    nc.connect("rtmp://localhost:1111/damian");
    results in
    description = Not enough arguments
    code = NetConnection.Connect.Rejected
    level = error


    the only way i can get it to connect to the server is if i provide my admin username and password in the form of
    nc.connect("rtmp://localhost:1111/damian", "username", "password");
    this gives me a result of
    description = Connection succeeded.
    code = NetConnection.Connect.Success
    level = status

    then
    level = status
    code = NetConnection.Connect.Closed

    straight after. is there any way to connect to the server without using my admin? i'll settle for that for the time being if someone could outline a way to keep the connection open once there. i have yet to get in a actually test some code out for the application we're meant to be developing. there's a time limit on this and i need to have a very rough prototype up and running in the next two days, so any help would be mightily appreciated
    divillysausagesAuthorCorrect answer
    Inspiring
    May 4, 2006
    ok, i figured out what was causing the problem, twas none other that mc afee security thing. whatever it was doing it was blocking my attempts to connect to the media server. even when i disabled everything. once i uninstalled the whole thing it worked like a charm and all the sample/tutorials as well

    mc afee your days are numbered...