XML Feeds

.

[javascript-dev] Javascript documentation.

Stefan Tiedje Stefan-Tiedje at addcom.de
Tue May 20 03:04:57 MDT 2008


Emmanuel Jourdan schrieb:
> You can use the send message. Then the syntax will be the same as the 
> one demonstrate in the "Making new objects" subpatcher of the 
> thispatcher help file. For instance:

I tried this for instance:

     this.patcher.message("script", "newobject", "newobj",
                     "@varname", "ctlobj[" + k + "]",
                     "@patching_rect", 250+k*30, 50, 280+k*30, 70,
                     "@text", ctlin, k+1
                     );

And it complained:

js: autosurface.js: Javascript ReferenceError: ctlin is not defined...

...

The js reference claims: "Any message to a patcher that you can send in 
Max (via the thispatcher object) you can send in Javascript in js."

How do I send the size message: "script size var1 100 15" like in the 
example to thispatcher?

I tried

this.patcher.size(controlin[k], 27, 15);

but it didn't work. Maybe because the the object doesn't have a 
scripting name yet...

I go through this, because I want to see if scripting within javascript 
is easier than with thispatcher, but it seems much more complicated... ;-)

Stefan

-- 
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|\-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com



More information about the javascript-dev mailing list