Hi,

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!

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.

Erik

sound.js:

snd = fgfs.getBoolean("/sim/sound/audible");
writeln("/sim/sound/audible = "+snd);
fgfs.setBoolean("/sim/sound/audible", !snd);


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

Reply via email to