title: Capture Mouse Event in Application when AxShockwaveFlash Full Screen
body: <p>I have an application which shows Flash Media full screen using AxShockwaveFlash control. </p>
  
  <p>I need to close the Window on a mouse click, however I cannot capture the mouse click when the AxShockwaveFlash control is active. </p>
  
  <p>The Click and MouseDown events do not work. </p>
  
  <p>In my application I've tried using the MouseDown events in the application, Supporting Grid and Control 'host' but none receive notification of the click event. </p>
  
  <p>As other areas of my application handle this event fine, it must be the Flash control. </p>
  
  <p>Code:</p>
  
  <pre><code>_flashHost = new System.Windows.Forms.Integration.WindowsFormsHost();
  _axShockwaveFlash = new AxShockwaveFlashObjects.AxShockwaveFlash();
  _flashHost.Child = _axShockwaveFlash;
  
  _flashHost.Margin = new Thickness(50, 0, 0, 0);
  this.FlashGrid.Children.Add(_flashHost);
  _axShockwaveFlash.BeginInit();
  _axShockwaveFlash.CreateControl();
  _axShockwaveFlash.Menu = false;
  _axShockwaveFlash.FlashVars = "start_volume=0";
  _axShockwaveFlash.Movie = loadedMediaItem.LocalMediaFile.LocalPath;
  _axShockwaveFlash.Play();
  </code></pre>
  
  <p>XAML</p>
  
  <pre><code>&lt;Window x:Class="CorporateScreenSaver.MediaContainerWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="Media" Height="421" Width="600" ShowInTaskbar="False" Topmost="True" WindowState="Maximized" ResizeMode="NoResize" WindowStyle="None"  Background="Black"  Loaded="MainWindow_OnLoaded" MouseDown="MainWindow_OnMouseDown" KeyDown="MainWindow_OnKeyDown"&gt;
      &lt;Grid Name="MediaGrid"&gt;
          &lt;Grid Name="FlashGrid"&gt;&lt;/Grid&gt;
          &lt;MediaElement Name="MediaViewPort"/&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>How can I get a capture the click event either by some global hook or a subscription to the AxShockwaveFlash control?</p>