# How can a SWF file know what's running it?

**URL:** <https://forum.kirupa.com/t/how-can-a-swf-file-know-whats-running-it/297014>\
**Category:** flash\
**Created:** [September 24, 2009, 7:17am UTC](https://forum.kirupa.com/t/how-can-a-swf-file-know-whats-running-it/297014 "2009-09-24T07:17:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OML](https://avatars.discourse-cdn.com/v4/letter/o/5e9695/32.png) [@OML](https://forum.kirupa.com/u/OML)\
**Post date:** [September 24, 2009, 7:17am UTC](https://forum.kirupa.com/t/how-can-a-swf-file-know-whats-running-it/297014/1 "2009-09-24T07:17:48Z")

</div>

I would like to sepated functional components according to the application running my SWF file. For example: When running from the Adobe Flash Player - Add button, and when running from a browser (firefox, explorer, chrome etc.) - Don’t add button.
