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

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.