title: How to capture flash window itself as video source in flash?
body: <p>I have Flash GUI with buttons and drawing board and want to stream all actions happen over it as Video.</p>
  
  <p>I know there is possibility to save UIComponent as image:</p>
  
  <pre><code>public class DrawingArea extends UIComponent
      public function getArray(): ByteArray {
          var bd:BitmapData = new BitmapData(width, height);
          bd.draw(this);
  
          var ba:ByteArray = (new PNGEncoder()).encode(bd);
          return ba;
      }
  }
  </code></pre>
  
  <p>But I want to capture graphic representation of UIComponent as VideoStream and publish it somewhere in order to save.</p>
  
  <p>Is there in flash any built-in functionality to create video source from my UIComponent and then to attach it to NetStream in order to publish?</p>
  
  <p>If not - what additional software can I use in order to be able to handle my flash GUI region as Video?</p>