title: Manually creating a Flash AxHost.OcxState
body: <p>I am trying to use the <code>AxShockwaveFlashObjects.AxShockwaveFlash</code> object in a <strong>console</strong> application in C#.  To do that, you have to set the <code>obj.OcxState</code> to something. I looked at how the Forms designer does that, and it does it this way:</p>
  
  <pre><code>this.flash.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("flash.OcxState")));
  </code></pre>
  
  <p>I looked in resources and there is nothing there.</p>
  
  <p>My question is, how can I create an <code>AxHost.State</code> manually so I can set the <code>OcxState</code> of my flash object to it?</p>
  
  <p>I see that the constructor of a <code>State</code> takes a <code>Stream</code>, <code>int</code>, <code>bool</code>, and a <code>string</code>. But I don't know what to put in the <code>Stream</code> (or the <code>int</code>, <code>bool</code>, or <code>string</code>) to create it.</p>