Hm ...
At the risk of reaching a limb, I really do not think that in any case, within the framework of the JavaScript browser itself, to connect to the specific activity of the Flash player. In fact, I would be very surprised if I were, although I would like to hear differently from someone more knowledgeable than me. :)
Assuming this is a different truth from some combination of listening (in Javascript running in the context of your page) for the focus and clicks caused by the ActiveX / plug-in object itself (which probably wouldn't be very specific or reliable - I don't even I think click events are coming up), I doubt you will have much luck.
What short testing I've done so far from:
window.onload = function() { document.onclick = function() { alert("Clicked the page!"); } document.getElementById("mySWFObjectID").onfocus = function() { alert("Focused the player!"); } document.getElementById("mySWFObjectID").onclick = function() { alert("Clicked the player!"); } }
... the player does not seem to trigger click events on the page; in IE, the focal event fires, but not in Firefox, and only once when the control receives focus. Therefore, in addition to writing, maybe some browser plug-in, to get access to a lower level than the one that is displayed at the Javascript level, you might not be lucky.
But then again, if there is someone who knows otherwise ...
source share