title: Error #2044: Unhandled NetStatusEvent
body: <p>I'm not sure why i'm getting the following error. Can you please suggest what change in my code needed to successfully play the rtmp stream on my stage?
  <strong>error:</strong> </p>
  
  <blockquote>
    <p>NetConnection.Connect.Success Error #2044: Unhandled NetStatusEvent:.
    level=error, code=NetStream.Play.StreamNotFound   at
    main/attachnetstream()[/Users/user/Desktop/ojotha/main.as:24] Debug
    session terminated.</p>
  </blockquote>
  
  <pre><code>package  {
      import flash.display.MovieClip;
      import flash.net.*;
      import flash.events.NetStatusEvent;
      import flash.media.Video;
  
      public class main extends MovieClip {
      public var streamserver:String="rtmp://216.245.200.114/live";
      public var streamname:String="shomoy";
      public var netconnection:NetConnection=new NetConnection();
  
          public function main() {
              netconnection.connect(streamserver);
              netconnection.addEventListener(NetStatusEvent.NET_STATUS, attachnetstream);
  
  
  
  
          }
          public function attachnetstream(event:NetStatusEvent):void{
              trace(event.info.code);
              switch (event.info.code) {
                  case "NetConnection.Connect.Success":
                  var netstream:NetStream=new NetStream(netconnection);
                  var video:Video=new Video();
                  video.attachNetStream(netstream);
                  netstream.play(streamname);
                  video.height=480;
                  video.width=640;
                  addChild(video);
  
                  break;
                  case "NetStream.Play.StreamNotFound":
                  trace("stream not found");
                  break;
              }
                  }
  
  
              }
  
      }
  </code></pre>