# NetStream.Buffer.Empty never fires

**URL:** <https://forum.kirupa.com/t/netstream-buffer-empty-never-fires/285750>\
**Category:** flash\
**Created:** [April 5, 2009, 8:20pm UTC](https://forum.kirupa.com/t/netstream-buffer-empty-never-fires/285750 "2009-04-05T20:20:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rai\_kane3](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@rai\_kane3](https://forum.kirupa.com/u/rai_kane3)\
**Post date:** [April 5, 2009, 8:20pm UTC](https://forum.kirupa.com/t/netstream-buffer-empty-never-fires/285750/1 "2009-04-05T20:20:05Z")

</div>

I am having problems getting the ns to detect when the stream is buffering so I can display a buffering message however in my NetStatusEvent the NetStream.Buffer.Empty never fires

I have a switch statement which traces out the event.info and the trace displays FULL but not empty what am I doing wrong?

here is my code

```auto
function netStatusHandler(event:NetStatusEvent):void {
    // handles net status events
    switch (event.info.code) {
        // trace a messeage when the stream is not found
        case "NetStream.Play.StreamNotFound":
            trace("Stream not found: " + strSource);
        break;
        case "NetStream.Buffer.Empty":
            trace("Buffering");
            mcVideoControls.videoBufferText.htmlText = "Buffering Video";
        break;
        case "NetStream.Buffer.Full":
            trace("playing");
            mcVideoControls.videoBufferText.htmlText = "";
        break;
        // when the video reaches its end, we check if there are
        // more videos left or stop the player
        case "NetStream.Play.Stop":
            if(intActiveVid + 1 < xmlPlaylist..vid.length())
                playNext();
            else
                stopVideoPlayer();
        break;
    }
}

```
