Skip to main content
April 17, 2006
Question

Sample apps not working

  • April 17, 2006
  • 14 replies
  • 1329 views
I just downloaded FMS 2.0.1 today and installed on my Win2K dev machine. I just want to start testing.

After reading up in the docs about how to connect to the server and being unsuccessful in doing so, I downloaded the samples from the Macromedia site. I unzipped and placed the samples and applications folders in the FMS installation directory.

I can connect through the server admin console.

The problem is that most of the sample apps don't work. I wanted to look at the sample_guestbook app since it seems pretty simple. When I launch the SWF in either the standalone player or in the browser (from the provided HTML file) nothing happens. I then opened the FLA and published but I get a trace of "Unable to connect".

When I try the sample_lobby SWF it works. The problem with that is the connection process is a lot more complicated since it's using components.

I tried my own FLA but it won't work:

var nc = new NetConnection();
nc.onStatus = function(info)
{
trace(info.code);
}
nc.connect('rtmp:/tutorial_text/room_01');

I always get NetConnection.Connect.Failed

I also tried:
nc.connect('rtmp://127.0.0.1:1935/tutorial_text/room_01');
to no avale.

I then looked at tutorial_text, which is also pretty simple, but I can't publish it since I don't have NetDebug.as. Why is that not installed?

Sorry for the newbie questions, but starting out with FMS has been frustrating. Is there a beginner's guide or something? I don't mean installation - I got that. I mean a "Now that you've installed FMS, here's an FLA and associated files, and here's where to put it, and it should work". The samples just don't do that.

I think a simple tutorial from Macromedia in this regard would do wonders in getting people hooked on FMS.

In case it matters, I don't have a web server running on my system and my firewall software is off.


mbd

P.S. In case any Adobe people actually look at this board, providing a link to a Documentation folder where files are named flashmediaserver_cs_asd.pdf is very wrong. It's like mystery-meat-navigation for files: open this one... nope. this one? nope. sigh. How about a link called "Client-Side ActionScript Language Reference"?
    This topic is closed to new replies. Start a new post to keep the conversation going.

    14 replies

    Participant
    April 20, 2006
    I have exactly the same problem. I can also connect as administrator on port 1111.
    nc=new NetConnection();
    nc.onStatus=function(info){
    trace(info.code);
    };
    nc.connect("rtmp://localhost:1111","administrator","password");
    NetConnection.Connect.Succesful

    but when I want to connect with :
    nc=new NetConnection();
    nc.onStatus=function(info){
    trace(info.code);
    };
    nc.connect("rtmp:/helloVideo", "lex");

    I received: NetConnection.Connect.Failed
    the admin console is working.
    I already tried rtm://localhost:1935/helloVideo","lex", but I get the same results.

    Is it possible that it had to do with more than 1 ethernet card in de computer?
    April 20, 2006
    I don't have more than one ethernet card, so I can't say if that's what's happening in your case or not.

    Thanks for posting your issue. Perhaps it'll get a little more attention if more people that are having the issue post about it.

    I don't mean to knock Jay's efforts here - he seems to be very active in helping out on the forums.

    Maybe if we can find a commonality it'll help us narrow down the issue.

    Are you using Windows 2000, XP, 98?

    I have Flash MX, MX 2004, and 8 installed. I also have Flex Builder 2 Beta 1 installed (although not running during FMS testing).

    I have tried the code I posted in Flash MX and in Flash 8 with the same results.

    The FMS processes are all running:
    FMSAdmin.exe
    FMSCore.exe
    FMSCore.exe
    FMSEdge.exe
    FMSMaster.exe
    (at least I think that's all of them)

    I can't think of anything else relevant at the moment.
    Participant
    April 20, 2006
    I'm running Windows XP SP2. I try to uninstall all the antivirus software and al the hitmanpro etc. but this is also no solution.
    What I see in de logfile Core.00 is this error?


    2006-04-21 01:01:50 4620 (w)2631008 Asynchronous I/O operation failed (Failed to attach to completion port: De parameter is onjuist. 87). -

    2006-04-21 01:01:50 4620 (w)2631008 Asynchronous I/O operation failed (Failed to attach to completion port: De parameter is onjuist. 87). -

    2006-04-21 01:01:50 4620 (w)2631008 Asynchronous I/O operation failed (Failed to attach to completion port: De parameter is onjuist. 87). -

    2006-04-21 01:01:51 4620 (w)2631008 Asynchronous I/O operation failed (Failed to attach to completion port: De parameter is onjuist. 87)
    April 19, 2006
    Am I really the only one that can't get the samples, and even the most basic code, to work?

    Can anyone shed some light on why this might be happening? Anything at all?


    mbd
    April 19, 2006
    If the swf is on the same machine as fms, try this:

    nc.connect('rtmp://localhost:1935/tutorial_text/room_01');

    If the .swf is on another machine on your network, try this:

    nc.connect('rtmp://FMS_LAN_IP:1935/tutorial_text/room_01'); <- insert the LAN ip of your FMS machine

    If the .swf is connecting to your FMS server from elsewhere (prehaps the internet) try:

    nc.connect('rtmp://FMS_WAN_IP:1935/tutorial_text/room_01'); <- Insert your internet (WAN) ip

    On the FMs machine, make sure you don't have a firewall preventing connections to FMS.
    April 19, 2006
    Hi Jay,

    Thanks for the response.

    Here's my code:

    var nc = new NetConnection();

    nc.onStatus = function(info)
    {
    trace(info.code);
    }

    nc.connect('rtmp://localhost:1935/tutorial_text/room_01');

    Trace output:
    NetConnection.Connect.Rejected
    NetConnection.Connect.Closed

    My firewall software is disabled.

    I'm on Windows 2000.

    The FMS is on the same machine that I'm trying the code.

    If nothing seems obvious about this then perhaps it's something basic that I didn't do, or am not doing, in the server console. Is there anything that I need to do there?

    TIA, I appreciate the time.


    Derek Vadneau