The usage of cmdarg() in listener callback functions was deprecated
since a while. Now it's no longer supported and will cause an error
message.

Where some of you still used something like:

  setlistener("/whatever", func {
      var foo = cmdarg().getValue();
  );

you must now use a regular function argument:

  setlistener("/whatever", func(n) {
      var foo = n.getValue();
  }


cmdarg() will keep working in (joystick) bindings and on the
top-level of embedded Nasal (dialog and animation XML files).

m.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to