# NetStatusEvent doesnt fire some of the events

**URL:** <https://forum.kirupa.com/t/netstatusevent-doesnt-fire-some-of-the-events/291918>\
**Category:** flash\
**Created:** [July 7, 2009, 3:36pm UTC](https://forum.kirupa.com/t/netstatusevent-doesnt-fire-some-of-the-events/291918 "2009-07-07T15:36:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![regbolD](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@regbolD](https://forum.kirupa.com/u/regbolD)\
**Post date:** [July 7, 2009, 3:36pm UTC](https://forum.kirupa.com/t/netstatusevent-doesnt-fire-some-of-the-events/291918/1 "2009-07-07T15:36:45Z")

</div>

if I say:  
netStream.pause();  
netStream.resume();  
netStream.togglePause();  
netStream.close();

these events dont seem to be fired…

```auto
_netStream.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
        
private function onNetStatus(evt:NetStatusEvent):void
{
    trace("netStream_onNetStatus: " + evt.info.code, evt.target);
    switch(evt.info.code)
    {
        case "NetConnection.Connect.Closed":
            //do something
            break;
        case "NetStream.Pause.Notify":
            //do something
            break;
        case "NetStream.Unpause.Notify":
            //do something
            break;
    }      
}

```

not that I especially need those but how can I rely on netStreamEvents if I dont know which is or isnt going to be fired…
