Dealing with the NetStatus info codes

(November 16th, 2009)

I never liked dealing with the NET_STATUS info codes that NetStream generates, beacuse I always forget the different codes. And there is no built in class which holds the string constant as representations for the different codes. So I basicly did a very simple wrapping of the status codes from the Adobe Reference into a simple to use class.

Usage

protected function netStream_netStatus ( event:NetStatusEvent ) : void
{
        switch( event.info.code )
        {
                case NetStatusConstants.NETSTREAM_PLAY_START:
                        trace("Start!");
                        break;
        }
}

So if you are like me, with a memory like a pacific sea turtle, this might come in handy. Download it here here, or view the class here.

Leave a Reply