Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Code on page leave [Actionscript]

How can I run code in Actionscript 3 when a page with my flash object is... well... I'm not sure of the term.

When the webpage is left and the flash applet is exited?

like image 755
James T Avatar asked Mar 22 '26 14:03

James T


1 Answers

I don't think Flash has built-in functionality to catch this type of event. You might try a javascript solution. See this topic. By doing so, you could implement a flash object callback using Flash's ExternalInterface at the time the user leaves your page.

like image 104
chris Avatar answered Mar 24 '26 13:03

chris



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!