This is because you cant (normally) iframe http://maps.google.com/. You need to point the FlexIframe component to an html file that loads to Google Maps API for JS. Then use External Interface to access the maps.
Something like <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:flexiframe="http://code.google.com/p/flex-iframe/" xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"> <flexiframe:IFrame id="map" source="http://<http://maps.google.com/> *myMap.html*" width="100%" height="100%" /> </s:Application> and inside myMap.html you follow : https://developers.google.com/maps/documentation/javascript/tutorial#HelloWorld Cheers 2014-05-19 9:19 GMT+02:00 sam991 <[email protected]>: > As per your reply i have used this code to display map in my browser with > my > flex application > > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" > xmlns:s="library://ns.adobe.com/flex/spark" > xmlns:flexiframe="http://code.google.com/p/flex-iframe/" > xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"> > > <flexiframe:IFrame id="map" source="http://maps.google.com/" > width="100%" > height="100%" /> > </s:Application> > > but this displays a blank page and nothing else.. > > > > > > -- > View this message in context: > http://apache-flex-users.2333346.n4.nabble.com/Google-Map-Javascript-v3-API-in-Flex-tp6480p6488.html > Sent from the Apache Flex Users mailing list archive at Nabble.com. > -- Alain Ekambi Co-Founder Ahomé Innovation Technologies http://www.ahome-it.com/ <http://ahome-it.com/>
