title: How to capture page with google map?
body: <p>I have a UIComponent with Google map in the continer.
  I need to capture this container for making a preview.</p>
  
  <p>My integration looks like the following:</p>
  
  <pre><code> &lt;mx:UIComponent id="mapContainer"
          width="410"
          height="300"
      /&gt;
  
  
   googleMap = new Map();
   mapContainer.addChild(googleMap);
  </code></pre>
  
  <p>But if I do("this" - is my UIComponent)</p>
  
  <pre><code>var bmd:BitmapData = new BitmapData(this.width, this.height, true, 0x00ffffff);
  bmd.draw(this);
  </code></pre>
  
  <p>I see the following:</p>
  
  <pre><code>An ActionScript error has occurred:
  SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: http://localhost/ cannot access http://mt1.google.com/vt/lyrs=m@121&amp;hl=en&amp;src=api&amp;x=1&amp;y=1&amp;z=1&amp;s=Gali. No policy files granted access.
      at flash.display::BitmapData/draw()
  </code></pre>
  
  <p>I now, that I can to add it host to allowed on the custom client. But I need to have working system on any computer )</p>
  
  <p>I've tried to hide it:</p>
  
  <pre><code>templateGoogleMapRenderer.mapContainer.setVisible(false);
  templateGoogleMapRenderer.mapContainer.includeInLayout = false;
  </code></pre>
  
  <p>But it was unsuccessfully.</p>
  
  <p>May be I can override some method in my UIComponent, that flex use during BitmapData/draw() ?</p>
  
  <p>Capture with hidden map is success result for me )</p>