I'd like to control two independent movie clips from MaxMSP to Flash (if possible). I've managed to get one working which moves a movie clip along the x axis like so:
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
clip = argv; // get name of MovieClip
axisx = argv; // get the frame number
_root[clip]._x = axisx;
clip1 = argv;
alpha1 = argv;
_root[clip1]._alpha = alpha1;
However, I assumed by adding the last three lines of code I could manipulate the alpha of an independent (second) movie clip. But no, whatever value I enter into max will just change the x value of the second movie clip. Does anyone have any hints as how to direct this additional input stream so it changes just alpha of the secondary clip?
I might point also out that both clips work independently. I have these two messages in Max:
send 1 crosshair 340 - manipulates x-axis value of 1st movie clip
send 1 c2 100 - i would like this to manipulate alpha of second movie clip (but it doesn't).