sounds simple enough, i want to turn traced output messages into variables, but
is there a way to read the output of one layer from a different layer.

i'm using the flash server on the below script

/*

flash frontend - simple flash gui for Max/MSP
(c) 2002 - 2003 Olaf Matthes <olaf.matthes@gmx.de>

[url]http://www.akustische-kunst.org/maxmsp/[/url]

*/

fscommand("allowscale", false);
fscommand("fullscreen", false);

function pdsendvars (symbol, value) {
fudi = symbol + " " + value + ";"
pd.send(fudi);
}

server = "localhost";
port = 31337;
pd = new XMLSocket();
pd.connect(server, port);
pd.onConnect = onPDconnect;
pd.onClose = onPDclose;
pd.onData = onPDdata;

function onPDconnect (success) {
if (success) {
msg = "Connected to "+server+" on port "+port;
} else {
msg = "There has been an error connecting to "+server+" on port "+port;
txt = "Error: Max is not listening on port 31337: Error in connection.";
//getURL('javascript:alert("' + txt + '");');
}
}

function onPDclose () {
msg = "Lost connection to "+server+" on port "+port;
//getURL('javascript:alert("Error: PD is not listening on port 31337: Lost
connection.");');
}
/* receive data from flashserver */
function onPDdata(doc) {
msg = doc;
trace (msg)
}


from (msg) i simply want to set variables, but i keep on getting errors,
Any Ideas?

Cheers,
Shane