我要查詢的谷歌地圖API爲這樣的:http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=true我可以訪問Flash內部的Google Maps API嗎?
他們crossdomain.xml
文件,here的內容,分別是:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="by-content-type" />
</cross-domain-policy>
我不是很有經驗使用ActionScript,但我相信,因爲他們錯過了allow-access-from
指令,我無能爲力。
我不能使用ExternalInterface
,所以在JavaScript中使用JSONP是不成問題的。
有什麼辦法可以解決這個問題嗎?
注意:從they're not issuing new API keys開始,我無法使用Google Maps API for Flash。
您是否看過(截至2011年9月爲止)Google Maps API for Flash? https://developers.google.com/maps/documentation/flash/ – TheDarkIn1978
@TheDarkIn7878我有,但我無法獲得API密鑰。 「新的密鑰不再適用於Maps API for Flash。」,他們在這裏說:https://developers.google.com/maps/signup –
@JúlioSantos在Adobe Air應用程序中可以加載和顯示html內容StageWebView和HTMLLoader。也就是說,你可以在你的應用程序中顯示谷歌地圖。 – Taurayi