Erik Hofman writes:

 > Good news (if you ask me)! I have an ECMA (Java)Script running in 
 > FlightGear, accessable true the menu (actually dynamically controllable 
 > trough a scripts.cml file). I now can toggle the sound on and of using 
 > JavaScript!

Wow -- excellent news.  Is the interpreter (1) Open Source or freer
and (2) small?  We can already do scripting, of course, though
external Java or Python processes using the libraries in scripts/, but
I wouldn't want to require users to install a large Java or Python
distro for core FlightGear functionality.  A bundled interpreter is
just what we need.

 > There is a small proble though, is there any way to pass an
 > argument to a PLIB menuBar Callback function? I searched the PLIB
 > website but couldn't find a clue.

I think you need to make the state information available somewhere
else that the callback function can find it.


All the best,


David

-- 
David Megginson, [EMAIL PROTECTED], http://www.megginson.com/

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to