ActionScript3 Reference
Class Message
Namespace: playerio
Language: ActionScript 3
Message object either sent or received from the server
Properties
|
| public |
Gets the length of the message
|
| public |
The type of the message
|
Methods
|
| public |
Adds data entry to the Message object
|
| public |
Reads a Boolean from the message object at index
|
| public |
Reads a ByteArray from the message object at index
|
| public |
Reads an int from the message object at index
|
| public |
Reads a number from the message object at index
|
| public |
Reads a String from the message object at index
|
| public |
Reads an uint from the message object at index
|
| public |
Shows a human readable serialization of the message
|
Message.length
Gets the length of the message
Message.type
The type of the message
Message.add
Adds data entry to the Message object
Arguments
|
... args |
|
Entries to add. Valid types are Number, int, uint, String, Boolean and ByteArray |
Example
How to add values to a message
Message.getBoolean
Reads a Boolean from the message object at index
Arguments
|
index:int |
|
The index of the value to be read |
Message.getByteArray
Reads a ByteArray from the message object at index
Arguments
|
index:int |
|
The index of the value to be read |
Message.getInt
Reads an int from the message object at index
Arguments
|
index:int |
|
The index of the value to be read |
Message.getNumber
Reads a number from the message object at index
Arguments
|
index:int |
|
The index of the value to be read |
Message.getString
Reads a String from the message object at index
Arguments
|
index:int |
|
The index of the value to be read |
Message.getUInt
Reads an uint from the message object at index
Arguments
|
index:int |
|
The index of the value to be read |
Message.toString
Shows a human readable serialization of the message