# Flash + Browser Interaction

**URL:** <https://forum.kirupa.com/t/flash-browser-interaction/260022>\
**Category:** flash\
**Created:** [May 11, 2008, 7:22pm UTC](https://forum.kirupa.com/t/flash-browser-interaction/260022 "2008-05-11T19:22:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![itbkris](https://avatars.discourse-cdn.com/v4/letter/i/e19adc/32.png) [@itbkris](https://forum.kirupa.com/u/itbkris)\
**Post date:** [May 11, 2008, 7:22pm UTC](https://forum.kirupa.com/t/flash-browser-interaction/260022/1 "2008-05-11T19:22:34Z")

</div>

Is it possible for flash to run code based on browser events? I want to run a logoff function if a user hits the logout button OR closes the browser window. Is this possible?

---

<div class="post-metadata">

**Author:** ![adnan794](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Post date:** [May 11, 2008, 7:34pm UTC](https://forum.kirupa.com/t/flash-browser-interaction/260022/2 "2008-05-11T19:34:52Z")

</div>

Yes it it possible try searching for running Action script function through Java script.
