While developing Flash media server applications I always find myself hitting the F1 button numerous times for a quick reference of the different onStatus Events (NetStream, netConnection,SharedObject). Ok, after a while one knows all out of the head. But a typo occurs more than often.
Right, so I took some time today to make a couple of (hopefully useful) classes to give me some intellisense support and prevent me from typing something wrong. It was a monks work but I finished in a reasonable time
. I’ve split all NetStatus events into 3 classes. Separating the events for netConnection, netStream and SharedObject.
Example of usage:
private function onStatus(ev:NetStatusEvent):void
{
switch (ev.info.code)
{
case NetConnectionStatusEvent.CONNECT_SUCCESS:
// connected
break;
case NetStreamStatusEvent.PLAY_STOP:
// playback stopped
break;
case SharedObjectStatusEvent.FLUSH_SUCCES:
// flush succesfull
break;
}
}
Here they are. Have fun.
