//globals outlets = 5; setoutletassist(0, "other avatars"); setoutletassist(1, "my avatar"); setoutletassist(2, "mixer"); setoutletassist(3, "my avatar"); setoutletassist(4, "mixer"); var myval=0; if (jsarguments.length>1) myval = jsarguments[1]; function bang() { mp("myvalue is " + myval); } function msg_int(v) { mp("received and am ignoring int " + v); bang(); } function msg_float(v) { mp("received and am ignoring float " + v); bang(); } function list() { var a = arrayfromargs(arguments); mp("received and am ignoring list " + a); bang(); } function anything() { objList = messagename.split("//"); //parse multiple messages into individuals for(i=0;i 0) { //explicitly pull out the key value pairs of the message paramsList = objList[i].split(":")[1]; kvPairs = paramsList.split("&"); //account for handling differences based on object type switch(objList[i].split(":")[0]) { case "myavatar": //loop through the key value pairs for(j=0;j