Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-31-2007, 03:32 AM   #1
BaconTastesGood
Registered User
 
Join Date: Jun 2006
Posts: 5
Default Trapping player/browser close/exit?

I'd like to run a snippet of code when my SWF is unloaded/exited, similar to C's "atexit" -- is there any facility for this?
BaconTastesGood is offline   Reply With Quote
Old 07-31-2007, 05:22 PM   #2
dr_zeus
Feathers
 
dr_zeus's Avatar
 
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,999
Default

Not in ActionScript itself. You might be able to capture the event with JavaScript and pass in the event through ExternalInterface.
__________________
Josh Tynjala | Feathers
dr_zeus is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trapping Function Keys? Ray Laurencelle ActionScript 1.0 (and below) 0 05-05-2003 02:27 PM
trapping browser print button crabcake ActionScript 1.0 (and below) 0 09-14-2002 01:06 PM
detect player/browser with actionscript pink ActionScript 1.0 (and below) 1 07-31-2002 01:36 PM
Trapping the enter key Gorodin ActionScript 1.0 (and below) 1 07-15-2002 11:12 PM
Jesse...need help trapping shift or Ctrl+'key' Nisha ActionScript 1.0 (and below) 1 01-17-2002 02:31 AM


All times are GMT. The time now is 08:53 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.