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 |
|
||
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 |
|
||
public |
Shows a human readable serialization of the message |
Message.length
public |
|
Gets the length of the message
Message.type
public |
|
The type of the message
Message.add
public |
|
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.clone
public |
|
Arguments
to:Object | |
Message.getBoolean
public |
|
Reads a Boolean from the message object at index
Arguments
index:int | |
The index of the value to be read |
Message.getByteArray
public |
|
Reads a ByteArray from the message object at index
Arguments
index:int | |
The index of the value to be read |
Message.getInt
public |
|
Reads an int from the message object at index
Arguments
index:int | |
The index of the value to be read |
Message.getNumber
public |
|
Reads a number from the message object at index
Arguments
index:int | |
The index of the value to be read |
Message.getString
public |
|
Reads a String from the message object at index
Arguments
index:int | |
The index of the value to be read |
Message.getUInt
public |
|
Reads an uint from the message object at index
Arguments
index:int | |
The index of the value to be read |
Message.Message
public |
|
Arguments
type:String | |
... args | |
Message.toString
public |
|
Shows a human readable serialization of the message