hello, i want to send data from a max patch to an flash.swf. therefor i downloaded the flashserver 1.1. when i press a button in the swf i can recieve data in my max patch. but now i want that the button in my swf changes his colour when i change a parameter in the patch. the question is where i have to write down this code? i put it in the "action"-frame where all my other code for the recieving is.
argv = ; // create a new array
doc = doc.substr(0, doc.length - 1); // chop off ';' at the end
argv = doc.split(" "); // split at spaces and convert to array
argc = argv.length; // get number of elements in array
for(i = 0; i < argc; i++) // loop through all arguments
msg += "argument "+ i +" is "+ argv[i];
clip = argv; // get name of MovieClip
frame = argv; // get the frame number
an what i have to do in the max patch. i have to connect a broadcast (send) tool with the flashserver an wirte down "broadcast taste_01_01 4" (taste_01_01 = is the name of my movieclip / 4 is the frame of the movieclip)
it dosent work at the moment. has anyone an idea. do i have to wirte any code in my movieclip? is it correct to put all the code in a several action frame?