Skip to main content
June 3, 2010
Question

HelloWorld is not working

  • June 3, 2010
  • 1 reply
  • 1049 views

Hi,

I'm trying out FMS on Windows Vista.  I've got it successfully installed.  I am trying to get the simple HelloWorld application to work (described at http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a0773d56e-7ffd.html).

However, I'm getting the error:

Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Connect.Failed
at HelloWorld/connectHandler()

I believe the code is crashing at:

nc.connect("rtmp://localhost/HelloWorld");

Is that the wrong URL?  Do I have to enable anything in IIS?

To eliminate the possibility of coding error, I've cut and pasted the code directly from files from C:\Program Files\Adobe\Flash Media Server 3.5\documentation\samples\HelloWorld.

The "HelloWorld" application shows in the "Applications" tab of the Admin console.

What else could I be missing?

    This topic has been closed for replies.

    1 reply

    June 3, 2010

    Hi Simi,

    I assume the video is streaming on the FMS Start Screen, yes?

    I know this might be annoying, but please start over and try these steps:

    1. Create a folder rootinstall/applications/HelloWorld

    2. Copy the file rootinstall/documentation/samples/HelloWorld/HelloWorld.asc to the rootinstall/applications/HelloWorld folder.

    3. Open the file rootinstall/documentation/samples/HelloWorld/HelloWorld.fla in Flash.

    4. In Flash, choose Control > Test Movie.

    In the Output Window, you should see:

    Connecting...

    onReply received value: Hello, World!

    Disconnecting...

    If you don't see the onReply, open rootinstall/documentation/samples/HelloWorld/HelloWorld.as and make sure it has the following line:

    import flash.events.NetStatusEvent;

    Let me know how this goes.

    Jody

    June 4, 2010

    >> I assume the video is streaming on the FMS Start Screen, yes?


    Yes, both the RTMP and HTTP version of videos at C:\Program Files\Adobe\Flash Media Server 3.5\webroot\index.html work fine.  That's one of the first things I checked to make sure FMS is installed properly.

    After doing steps 1-4, I still get the same error.  The NetStatusEvent library is imported in HelloWorld.as.

        import flash.display.MovieClip;
        import flash.net.Responder;
        import flash.net.NetConnection;
        import flash.events.NetStatusEvent;
        import flash.events.MouseEvent;
       
    Is there security issues I have to take care of in Vista?

    June 4, 2010

    Vista isn't supported. But neither is WinXP and the sample works for me on WinXP. It may work on Vista, it may not.

    I'd try the HelloServer app to see if that works.

    Jody