<p>How do you capture the mouse events, move and click over top of a Shockwave Director Object (not flash) in Firefox, via JavaScript. The code works in IE but not in FF. </p>

<p>The script works on the document body of both IE and Moz, but mouse events do not fire when mouse is over a shockwave director object embed.</p>

<p>Update: </p>

<pre><code>  function displaycoordIE(){
     window.status=event.clientX+" : " + event.clientY;
  }      
  function displaycoordNS(e){
     window.status=e.clientX+" : " + e.clientY;
  }
  function displaycoordMoz(e)
  {
      window.alert(e.clientX+" : " + e.clientY);
  }

  document.onmousemove = displaycoordIE;
  document.onmousemove = displaycoordNS;
  document.onclick = displaycoordMoz;
</code></pre>

<hr>

<p>Just a side note, I have also tried using an addEventListener to "mousemove".</p>

[{'answer_id': 171164, 'author': 'ken', 'author_id': 20300, 'author_profile': 'https://Stackoverflow.com/users/20300', 'pm_score': 1, 'selected': False, 'text': '<p>Just an idea.</p>\n\n<p>Try overlaying the shockwave object with a div with opacity 0, then you can capture events on the div itself.</p>\n'}, {'answer_id': 1839458, 'author': 'luna1999', 'author_id': 2573986, 'author_profile': 'https://Stackoverflow.com/users/2573986', 'pm_score': 3, 'selected': True, 'text': '<p>You could also catch the mouse event within Director (That never fails) and then call your JS functions from there, using gotoNetPage "javascript:function(\'" &amp; argument &amp; "\')"</p>\n\n<p>ej:</p>\n\n<pre><code>on mouseDown me\n   gotoNetPage "javascript:function(\'" &amp; argument &amp; "\')"\nend\n</code></pre>\n\n<p>The mouse move detection is a little bit trickier, as there is no such an event in lingo, but you can use:</p>\n\n<pre><code>property pMouseLock\n\non beginsprite\n   pMouseLock = _mouse.mouseLock\nend\non exitFrame \n   if _mouse.mouseLock &lt;&gt; pMouseLock then\n      gotoNetPage "javascript:function(\'" &amp; argument &amp; "\')"\n      pMouseLock = _mouse.mouseLock\n   end if\nend\n</code></pre>\n\n<p>regards</p>\n'}]
['https://Stackoverflow.com/questions/50585', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/567/']