GoogleマップのFlash APIをFlexに埋め込みました。そのマップはウォーターマークを付けてローカルで正常に動作します。サーバー(flex.mydomain.com)にアップロードすると、サンドボックスが表示されます以下に示すセキュリティエラー:フレックスコンポーネントの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()
誰もがFlexコンポーネントにGoogleマップのFlash APIを埋め込むの経験を持っており、特にこの仕事をするために、セキュリティ設定を設定していますか?私は自分のドメインに登録されている新しいAPIキーを取得し、公開時にそのAPIキーを使用しています。
私は、メインのアプリケーションだけでなく、コンポーネントで次の操作を実行しようとしました:
Security.allowDomain('*')
Security.allowDomain('maps.googleapis.com')
Security.allowDomain('mydomain.com')