JSUI rendering text with black background

Adam Jansch's icon

Hi,

Had a quick look at previous forum posts but came up with no answer... I am drawing text into a JSUI but, after compiling the JS file, the text appears on a black background, and as the text is black this is a problem! If I resize the JSUI object the text redraws properly, with a transparent background. How can I fix this? (JS file attached)

Thanks,

Adam Jansch

1218.aj-js-router.js
js
Samuel Freeman's icon
Max Patch
Copy patch and select New From Clipboard in Max.

here's a work-around which will sort it out - you need to give the jsui object the appropriate scripting name ('routerUI')

but prevention would be better than cure...

: )

sdf

Adam Jansch's icon

Hey Sam,

That's a cute workaround :-) I tried the same thing from within Javascript but it didn't work; this though should work as it mimics the mouse movement of resizing the JSUI externally.

You're right though, prevention is better than cure ... does anyone know if there is a prevention for this problem?

Adam