canvas.remoteEval(expr2.getText());
//
//
receivingLC.debugResult = function(doc)
{
var response = doc.firstChild;
Debug.write(doc);
if (response != null) {
if (response.nodeName == "response") {
for (var n = 0; n < response.childNodes.length; n++) {
var child = response.childNodes[n];
if (child.nodeName == 'value') {
var val = child.attributes['value'];
var valtype = child.attributes['type'];
Debug.write(val, valtype);
if (child.hasChildNodes()) {
var nnodes = child.childNodes.length;
for (var i = 0; i < nnodes; i++) {
var param = child.childNodes[i];
Debug.write(param.attributes['name'],': ', param.attributes['value'],
param.attributes['type']);
}
}
} else if (child.nodeName == "warning") {
//
canvas.showWarning(child);
} else if (child.nodeName == "log") {
canvas.showLogMessage(child);
}
}
} else if (response.nodeName == "warning") {
canvas.showWarning(response);
} else if (response.nodeName == "log") {
canvas.showLogMessage(response);
} else {
Debug.write(doc);
}
}
}
Debug.write("listening on lc_consoledebug");
receivingLC.connect("lc_consoledebug");
var sendingLC = new LocalConnection();
// sequence numbers for eval requests
canvas.evalseqnum = 0;
]]>
var msg = response.attributes.msg;
var item = new _root.LzMessage(msg);
Debug.addText(item);
Debug.addText("\n");
var filename = response.attributes.filename;
var lineNumber = response.attributes.line;
var msg = response.attributes.msg;
var warning = new _root.LzWarning(filename, lineNumber, msg);
Debug.addText(warning);
Debug.addText("\n");