Code: Select all
public function getRoomList()
{
var header = {t:"sys"}
this.send(header, "getRmList", (this.activeRoomId ? this.activeRoomId:"-1"), "")
}Code: Select all
private function send(header:Object, action:String, fromRoom:Number, message:String)
{
// Setup Msg Header
var xmlMsg:String = this.makeHeader(header);
// Setup Body
xmlMsg += "<body action='" + action + "' r='" + fromRoom + "'>" + message + "</body>" + this.closeHeader()
if (this.debug)
trace("[Sending]: " + xmlMsg + newline)
super.send(xmlMsg)
}Is that OK?
can I change "-1" to -1?