Skip to main content
Participant
December 14, 2016
Question

Adding functionality to print button in FlashPlayer

  • December 14, 2016
  • 1 reply
  • 211 views

Hello Community,

I'm currently trying to detect if/when someone clicked the print button in the Adobe Flash Player. Is that possible?

And if 'yes': how can I add some additional functionality to this button (such as calling a php/js function)?

Thank you a lot in advance!

This topic has been closed for replies.

1 reply

jeromiec83223024
Inspiring
December 15, 2016

Flash Player itself doesn't have any UI like this.  Either this is generated by the content, or it's something else, like the browser's built-in PDF reader. There's not enough context in the screenshot to be able to figure out what I'm actually looking at beyond the fact that it's not our built-in UI. 

If this is content you developed, you can certainly add an event listener to a button to catch click events, and you can do whatever you want in the event handler in terms of either transmitting the data to the network via HTTP/S, socket, etc. or by calling JavaScript functions via ExternalInterface.

There are plenty of online tutorials on ActionScript 3 that you can find with a cursory Google search that cover the basics.  There are some good tutorials on the Flash developer's center here: Flash Developer Center | Adobe Developer Connection , and Lynda.com has a really great training series that's inexpensive. 

Hope that helps!