The purpose of this page is to demonstrate multiple ways of generating data from the Web as control parameters for MAX. Here are four possibilities:
2) This link sends the numbers 32 and 64 to MAX.
3) This Flash animation will send numbers to MAX based on what action is performed (Press, Release, RollOver, etc.). These numbers are coded into the Flash object as FSCommand arguments. Download the TestButton to see.
\n'); } function writeID(element) { var wid = element.value; var nextday = new Date(); nextday.setTime(nextday.getTime() + 86400000); // expires in 24 hours document.cookie = "Web2OSCID=" + wid + "; expires=" + nextday.toGMTString(); // defaultStatus = "writeID() " + wid; } function readID() { var rid = 0; var allcookies = document.cookie; var pos = allcookies.indexOf("Web2OSCID="); if (pos != -1) { var start = pos + 10; var end = allcookies.indexOf(";", start); if (end == -1) end = allcookies.length; var rid = allcookies.substring(start, end); } // defaultStatus = "readID() " + rid; return rid; } // Here's the Javascript function definition for link triggers. function trigger(arg1, arg2) { // this passes data to the Java Applet (and on to Max). // have to convert int to string for data type compatibility with Flash FSCommand document.Web2OSClet.trigger(arg1, new String(arg2)); } //Here's the Javascript function definition for sending IP and Time. function iptime() { document.Web2OSClet.touch(); } //-->
4) This form saves a number into a cookie and passes it to MAX paired with the value from the Flash animation. In this way, individual visitors can be tracked and their actions associated with them for continuity.