Melchior FRANZ wrote: > If the object is removed from memory, then a variable is changed in > the object's namespace, so that the code can stop itself.
Rather than set this from C++ code, why not use: > An optional destructor part can be used for further cleanup (remove > listeners etc.) Which can do it all from Nasal with just a single line. And defining it as the "second <script>" tag seems clumsy to me; how about calling it <on-unload> or <destroy> or something similar? Andy ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

