 
       if ('NetConnection.Connect.Closed' === event.info.code) {
         dispatchEvent(new ClientEvent(ClientEvent.STOPPED));
+        this.currentState = "stopped";
       }
     }
 

    public function stop():Boolean {
      ns.dispose();
      nc.close();
      return true;
    }

    public function pause():Boolean {
      ns.pause();
      return true;
    }

    public function resume():Boolean {
      ns.resume();
      return true;
    }

    private var ns:NetStream;
    private var streamServer:String;
    private var streamId:String;
    private var currentState:String = "stopped";

    public function RTMPClient(video:Video, urlParsed:Object) {
      this.video = video;
