connect to google map(s)


  // define GoogleProvider with custom paths  (undocumented)
  var settings:URLRequest = new URLRequest("http://umap.s3.amazonaws.com/assets/xml/GoogleSettings.xml?rand=" + Math.random());
  var language:URLRequest = new URLRequest("http://maps.google.com/maps?file=api&v=2")
  var copyright:URLRequest = new URLRequest("http://www.afcomponents.com/proxy/g_map_as3/copyright.php");
  map.setProvider (new GoogleProvider(false, settings, language, copyright));
  
        ref.focusManager.deactivate();
         
           map.addControl(new MapTypeControl());
           map.addControl(new ZoomControl());
           map.addControl(new PositionControl());
     }
     ]]>
     </mx:Script>
  
     <mx:VBox>
        <mx:Canvas id="mapCanvas" width="100%" height="100%" backgroundColor="#352D69" x="6" y="10"/>
     </mx:VBox>
  </mx:Application>