Video won't show up when streaming with FMS2

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 ?


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!