Re: Javascript API creator changed in Max6

Forums > Max For Live > Javascript API creator changed in Max6
July 3, 2012 | 10:40 pm

Ahhhh….Okay I did some more testing after you replied and it does indeed work for me as well with a new js. This behavior was happening to me in frozen files, and at some point I added a callback to the creator function and got things working. I’ll have to do some more testing to find out the specifics (I have plenty of patches to refreeze in Max6, so I’ll get back to you when I find out what is going on with this).

For the record, the message I’m getting in response to this, which runs fine in Max5:

finder=new LiveAPI(this.patcher, 'control_surfaces');

is this:

js: monolcd.js: Javascript TypeError: "control_surfaces" is not a function, line 109
js: error calling function bang LCD dissolved!

I just unfroze this attached, resaved it in max6, closed it, reopened it in max6, refroze it, and I’m still getting the same message.

Maybe something else is wrong w/my syntax? I know that this.patcher isn’t necessary, but I was getting the same result without it.


As always, thanks for the help :)

edit:: in any case, glad that it’s SUPPOSED to work!