# \[Q\] video playback: NetStream.Play.Stop & NetStream.Buffer.Flush?

**URL:** <https://forum.kirupa.com/t/q-video-playback-netstream-play-stop-netstream-buffer-flush/228986>\
**Category:** Uncategorized\
**Created:** [June 13, 2007, 4:32am UTC](https://forum.kirupa.com/t/q-video-playback-netstream-play-stop-netstream-buffer-flush/228986 "2007-06-13T04:32:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manfree](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@manfree](https://forum.kirupa.com/u/manfree)\
**Post date:** [June 13, 2007, 4:32am UTC](https://forum.kirupa.com/t/q-video-playback-netstream-play-stop-netstream-buffer-flush/228986/1 "2007-06-13T04:32:26Z")

</div>

I have made a simple flv playback script, which keeps playing FLV  
script as follow:

```auto
 
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
video.attachNetStream(ns);
ns.play("video1.flv");
ns.addEventListener(NetStatusEvent.NET_STATUS, statusHandler);
 
function statusHandler(e:NetStatusEvent):void {
 trace(e.info.code);
 switch(e.info.code) {
  case "NetStream.Play.Stop":
   ns.play("video1.flv");
   break;
  case "NetStream.Buffer.Flush":
   ns.play("video2.flv");
   break;
 }
}

```

[COLOR=royalblue]I’m wondering … when the FLV finished playing…[/COLOR]  
[COLOR=royalblue]sometimes the e.info.code returns “NetStream.Play.Stop”, and[/COLOR]  
[COLOR=royalblue]sometimes returns “NetStream.Buffer.Flush”[/COLOR]

i have no idea what’s wrong with that???  
what’s the difference between them … ???  
Could any body help??

Thanks ~~ 🙂
