Is there any function in flash that can check when the program closes? Like for instance, when the program closes, send values to the database of a score/time? I don't believe there is any, and one of my clients has asked me to make a script that requires some function of that sort, but I just want to re-check with experts here at FK. I'd appreciate any help, thanks.

-Andrew