jit.desktop in a javascript

Peter Nyboer's icon

I'm trying to instantiate an instance of jit.desktop in a javascript:
var desk = new JitterObject("jit.desktop",4,"char",320,240);

and i get the errors:

#N: bad arguments for message "jit_desktop"
jsjitterobject_Constructor: null object jit_desktop

(happens in 4 & 5).

Is it not possible to use jit.desktop in js?

pboer

Jeremy's icon

I can't test this right now, but try:

var desk = new JitterObject("jit.desktop",320,240);

instead.

jb

Peter Nyboer's icon

thanks, that seems to instantiate w/out error.