* Torsten Dreyer -- Wednesday 06 December 2006 10:58: > foo = aircraft.light.new( "/sim/model/lights/foo", 0.5, 0.3 ); > foo.interval = 0.1; > foo.switch( 1 ); > > produces the error message > Nasal runtime error: function/method call invoked on uncallable object > at some/path/foo.nas, line 3
Heh, that's a bug in aircraft.nas that I introduced two days ago(?) and that I fixed yesterday (both branches). Just update. I had accidentally redefined the "switch()" method as a member variable. BTW: foo.interval = 0.1; isn't necessary any more. It doesn't even exist. There's now no polling any more, but a listener attached to the switch property. This guarantees instant action. And the loop does now only run when blinking is enabled, which saves a few cycles. The interface remains the same. m ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel