我在Flex中嵌入了Google Maps Flash API,它在本地運行良好,水印等等。當我將它上傳到服務器(flex.mydomain.com)時,我得到一個沙箱下面列出的安全錯誤:Flex組件中的Google地圖
SecurityError: Error #2121: Security sandbox violation: Loader.content: http://mydomain.com/main.swf?Fri, 12 Sep 2008 21:46:03 UTC cannot access http://maps.googleapis.com/maps/lib/map_1_6.swf. This may be worked around by calling Security.allowDomain.
at flash.display::Loader/get content()
at com.google.maps::ClientBootstrap/createFactory()
at com.google.maps::ClientBootstrap/executeNextFrameCalls()
有沒有人有嵌入谷歌地圖API的Flash到Flex組件的經驗和專門設置的安全設置,以使這項工作?我確實獲得了一個新的API密鑰,該密鑰已註冊到我的域,並在發佈時使用它。
我試圖做的主要應用以下以及組件:
Security.allowDomain('*')
Security.allowDomain('maps.googleapis.com')
Security.allowDomain('mydomain.com')