Hej alle.
Jeg er sikker på der er mange af jer som en eller anden gang har siddet og været irriteret over at man selv skal huske alle NetStatus codes, og så vidt jeg ved er der ikke en klasse til det. Så jeg lavede den lige hurtigt, ingen dyb tallerken her, bare en simpel hjælp.

Poster bare koden, så kan I selv lave en fil ud af det Smile

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package
{
  public class NetStatusCodes
  {
    public static const NETSTREAM_BUFFER_EMPTY      = "NetStream.Buffer.Empty"
    public static const NETSTREAM_BUFFER_FULL       = "NetStream.Buffer.Full"
    public static const NETSTREAM_BUFFER_FLUSH      = "NetStream.Buffer.Flush"
    public static const NETSTREAM_FAILED        = "NetStream.Failed"
    public static const NETSTREAM_PUBLISH_START       = "NetStream.Publish.Start"
    public static const NETSTREAM_PUBLISH_BADNAME       = "NetStream.Publish.BadName"
    public static const NETSTREAM_PUBLISH_IDLE      = "NetStream.Publish.Idle"
    public static const NETSTREAM_UNPUBLISH_SUCCESS     = "NetStream.Unpublish.Success"
    public static const NETSTREAM_PLAY_START      = "NetStream.Play.Start"
    public static const NETSTREAM_PLAY_STOP       = "NetStream.Play.Stop"
    public static const NETSTREAM_PLAY_FAILED       = "NetStream.Play.Failed"
    public static const NETSTREAM_PLAY_STREAMNOTFOUND     = "NetStream.Play.StreamNotFound"
    public static const NETSTREAM_PLAY_RESET      = "NetStream.Play.Reset"
    public static const NETSTREAM_PLAY_PUBLISHNOTIFY    = "NetStream.Play.PublishNotify"
    public static const NETSTREAM_PLAY_UNPUBLISHNOTIFY    = "NetStream.Play.UnpublishNotify"
    public static const NETSTREAM_PLAY_INSUFFICIENTBW     = "NetStream.Play.InsufficientBW"
    public static const NETSTREAM_PLAY_FILESTRUCTUREINVALID   = "NetStream.Play.FileStructureInvalid"
    public static const NETSTREAM_PLAY_NOSUPPORTEDTRACKFOUND  = "NetStream.Play.NoSupportedTrackFound"
    public static const NETSTREAM_PAUSE_NOTIFY      = "NetStream.Pause.Notify"
    public static const NETSTREAM_UNPAUSE_NOTIFY      = "NetStream.Unpause.Notify"
    public static const NETSTREAM_RECORD_START      = "NetStream.Record.Start"
    public static const NETSTREAM_RECORD_NOACCESS       = "NetStream.Record.NoAccess"
    public static const NETSTREAM_RECORD_STOP       = "NetStream.Record.Stop"
    public static const NETSTREAM_RECORD_FAILED       = "NetStream.Record.Failed"
    public static const NETSTREAM_SEEK_FAILED       = "NetStream.Seek.Failed"
    public static const NETSTREAM_SEEK_INVALIDTIME      = "NetStream.Seek.InvalidTime"
    public static const NETSTREAM_SEEK_NOTIFY       = "NetStream.Seek.Notify"
    public static const NETCONNECTION_CALL_BADVERSION     = "NetConnection.Call.BadVersion"
    public static const NETCONNECTION_CALL_FAILED       = "NetConnection.Call.Failed"
    public static const NETCONNECTION_CALL_PROHIBITED     = "NetConnection.Call.Prohibited"
    public static const NETCONNECTION_CONNECT_CLOSED    = "NetConnection.Connect.Closed"
    public static const NETCONNECTION_CONNECT_FAILED    = "NetConnection.Connect.Failed"
    public static const NETCONNECTION_CONNECT_SUCCESS     = "NetConnection.Connect.Success"
    public static const NETCONNECTION_CONNECT_REJECTED    = "NetConnection.Connect.Rejected"
    public static const NETCONNECTION_CONNECT_APPSHUTDOWN     = "NetConnection.Connect.AppShutdown"
    public static const NETCONNECTION_CONNECT_INVALIDAPP    = "NetConnection.Connect.InvalidApp"
    public static const SHAREDOBJECT_FLUSH_SUCCESS      = "SharedObject.Flush.Success"
    public static const SHAREDOBJECT_FLUSH_FAILED     = "SharedObject.Flush.Failed"
    public static const SHAREDOBJECT_BADPERSISTENCE     = "SharedObject.BadPersistence"
    public static const SHAREDOBJECT_URIMISMATCH      = "SharedObject.UriMismatch"
  }
}

Sig til hvis der mangler nogle!

PS. Ved ikke om det er det rigtige sted at poste, så flyt den bare hvis det er.