Hi Adam,

ACE91 <[EMAIL PROTECTED]> wrote on 11/05/2007 04:28:32 PM:

> I'm trying to make a game with Batik (Yes, a game. Why hasn't anyone 
tried
> this before? There don't seem to be any other vector graphics engines 
for
> Java that can load from files) and I've encountered one critical 
problem.
> How do you send an event from the JavaScript embedded in a SVG file to 
the
> Java program displaying it?

   You can use BridgeContext.getInterpreter(<mimetype string>);
To get the javascript interpreter, then call 
script.Interpreter.bindObject(String name, Object obj);

   To bind an Java object into the JavaScript environment.
You can then call methods on that Java Object from javascript.

Reply via email to