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
|
length
Gets the length of the message
Return Value
type
The type of the message
Return Value
add
Adds data entry to the Message object
Arguments
| params restParam |
args |
|
Entries to add. Valid types are Number, int, uint, String, Boolean and ByteArray |
Example
How to add values to a message
getBoolean
Reads a Boolean from the message object at index
Arguments
| int |
index |
|
The index of the value to be read |
Return Value
getByteArray
Reads a ByteArray from the message object at index
Arguments
| int |
index |
|
The index of the value to be read |
Return Value
getInt
Reads an int from the message object at index
Arguments
| int |
index |
|
The index of the value to be read |
Return Value
getNumber
Reads a number from the message object at index
Arguments
| int |
index |
|
The index of the value to be read |
Return Value
getString
Reads a String from the message object at index
Arguments
| int |
index |
|
The index of the value to be read |
Return Value
getUInt
Reads an uint from the message object at index
Arguments
| int |
index |
|
The index of the value to be read |
Return Value
toString
Shows a human readable serialization of the message
Return Value