create new message box from JS

Apr 4, 2013 at 9:27pm

create new message box from JS

Hello,
I am trying to create a message box with JS, and the value inside the box should be something like “id 8″ (without quotation marks, and with space between id and 8).

I try this, among other things, but it does not work:
this.patcher.newobject(“message”, 100, 10, 20, 100, “id 8″) ;

any suggestions?

thanks a lot,
ahmet

#67539
Apr 4, 2013 at 9:40pm

oh, so simple…
all I had to do was to pass 8 as another parameter. (In my case I had to use parseInt as well)

this.patcher.newobject(“message”, 100, 10, 20, 100, “id”, 8);

false alarm

#243029

You must be logged in to reply to this topic.