# Video won't show up when streaming with FMS2

**URL:** https://forum.kirupa.com/t/video-wont-show-up-when-streaming-with-fms2/237682
**Category:** Uncategorized
**Created:** [September 2, 2007, 2:05pm UTC](https://forum.kirupa.com/t/video-wont-show-up-when-streaming-with-fms2/237682 "2007-09-02T14:05:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Lundin](https://avatars.discourse-cdn.com/v4/letter/l/dfb087/32.png) [@Lundin](https://forum.kirupa.com/u/Lundin)
#### Post date: [September 2, 2007, 2:05pm UTC](https://forum.kirupa.com/t/video-wont-show-up-when-streaming-with-fms2/237682/1 "2007-09-02T14:05:25Z")

</div>

Hi!

I am trying to get FMS to work and as far as i can see (from the fms2 console) it actually streams the content(flv) that i have in my application folder (i have also the main.asc there) . But in my swf the video won’t show up. What am i missing ?

```auto

NetConnection.defaultObjectEncoding = ObjectEncoding.AMF0

var nc:NetConnection = new NetConnection();

nc.connect('rtmp:// ********** /video/stream/_definst_');
nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
function onAsyncError(event:AsyncErrorEvent):void {
connectStream();
}
function onNetStatus(evt:NetStatusEvent):void{
connectStream();
}
 

function connectStream():void {
              var stream:NetStream = new NetStream(nc);
             var videos:Video = new Video();
            videos.attachNetStream(stream);
            addChild(videos);
    stream.play("door");
        }

```

thanks!
